mirror of
https://github.com/haskell/haskell-ide-engine.git
synced 2024-10-26 19:29:32 +03:00
Add macos fix taken from the Makefile
This commit is contained in:
parent
276d72f812
commit
8fef0576c3
14
Shakefile.hs
14
Shakefile.hs
@ -55,6 +55,11 @@ main = do
|
||||
installHie stackLocalDir version
|
||||
)
|
||||
|
||||
phony "icu-macos-fix"
|
||||
(need ["icu-macos-fix-install"] >> need ["icu-macos-fix-build"])
|
||||
phony "icu-macos-fix-install" (command_ [] "brew" ["install", "icu4c"])
|
||||
phony "icu-macos-fix-build" $ mapM_ buildIcuMacosFix hieVersions
|
||||
|
||||
buildDist :: Action ()
|
||||
buildDist = do
|
||||
Stdout gitRef' <- command [] "git" ["describe", "--tags"]
|
||||
@ -89,6 +94,15 @@ buildDist = do
|
||||
)
|
||||
return ()
|
||||
|
||||
buildIcuMacosFix :: VersionNumber -> Action ()
|
||||
buildIcuMacosFix version = execStackWithYaml_
|
||||
version
|
||||
[ "build"
|
||||
, "text-icu"
|
||||
, "--extra-lib-dirs=/usr/local/opt/icu4c/lib"
|
||||
, "--extra-include-dirs=/usr/local/opt/icu4c/include"
|
||||
]
|
||||
|
||||
updateSubmodules :: Action ()
|
||||
updateSubmodules = do
|
||||
command_ [] "git" ["submodule", "sync"]
|
||||
|
Loading…
Reference in New Issue
Block a user