diff options
Diffstat (limited to 'hadrian/src/Rules/Configure.hs')
| -rw-r--r-- | hadrian/src/Rules/Configure.hs | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/hadrian/src/Rules/Configure.hs b/hadrian/src/Rules/Configure.hs deleted file mode 100644 index 9de31e2bbc..0000000000 --- a/hadrian/src/Rules/Configure.hs +++ /dev/null @@ -1,43 +0,0 @@ -module Rules.Configure (configureRules) where - -import qualified System.Info.Extra as System - -import Base -import Builder -import CommandLine -import Context -import GHC -import Target -import Utilities - -configureRules :: Rules () -configureRules = do - [configFile, "settings", configH] &%> \outs -> do - skip <- not <$> cmdConfigure - if skip - then unlessM (doesFileExist configFile) $ - error $ "Configuration file " ++ configFile ++ " is missing.\n" - ++ "Run the configure script manually or let Hadrian run it " - ++ "automatically by passing the flag --configure." - else do - -- We cannot use windowsHost here due to a cyclic dependency. - when System.isWindows $ do - putBuild "| Checking for Windows tarballs..." - quietly $ cmd ["bash", "mk/get-win32-tarballs.sh", "download", System.arch] - let srcs = map (<.> "in") outs - context = vanillaContext Stage0 compiler - need srcs - build $ target context (Configure ".") srcs outs - - ["configure", configH <.> "in"] &%> \_ -> do - skip <- not <$> cmdConfigure - if skip - then unlessM (doesFileExist "configure") $ - error $ "The configure script is missing.\nRun the boot script " - ++ "manually let Hadrian run it automatically by passing the " - ++ "flag --configure." - else do - need ["configure.ac"] - putBuild "| Running boot..." - verbosity <- getVerbosity - quietly $ cmd [EchoStdout (verbosity >= Loud)] "python3 boot" |
