Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions install/src/HlsInstall.hs
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,13 @@ defaultMain = do

want ["short-help"]
-- general purpose targets
phony "submodules" updateSubmodules
phony "short-help" shortHelpMessage
phony "help" (helpMessage toolsVersions)

phony "check" (if isRunFromStack then checkStack args else checkCabal_ args)

phony "data" $ do
need ["show-options"]
need ["submodules"]
need ["check"]
liftIO $ putStrLn "Generation of hoogle data files is disabled for now."
-- if isRunFromStack then stackBuildData args else cabalBuildData args
Expand All @@ -60,7 +58,6 @@ defaultMain = do
versions
(\version -> phony ("hls-" ++ version) $ do
need ["show-options"]
need ["submodules"]
need ["check"]
if isRunFromStack then
stackInstallHlsWithErrMsg (Just version) args
Expand Down Expand Up @@ -104,9 +101,3 @@ buildIcuMacosFix version args = execStackWithGhc_
, "--extra-lib-dirs=/usr/local/opt/icu4c/lib"
, "--extra-include-dirs=/usr/local/opt/icu4c/include"
] ++ args

-- | update the submodules that the project is in the state as required by the `stack.yaml` files
updateSubmodules :: Action ()
updateSubmodules = do
command_ [] "git" ["submodule", "sync"]
command_ [] "git" ["submodule", "update", "--init"]