Commit 1562315b authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Pass --enable-tarballs-autodownload to configure by default on Windows.

See #204.
parent 2bde60d8
module Rules.Config (configRules) where
import qualified System.Info
import Base
import CmdLineFlag
import Rules.Actions
......@@ -14,7 +16,11 @@ configRules = do
case cmdConfigure of
RunConfigure args -> do
need [ settings <.> "in", cfgH <.> "in" ]
runConfigure "." [] [args]
-- We cannot use windowsHost here due to a cyclic dependency
let defaultArgs = if System.Info.os == "mingw32"
then [ "--enable-tarballs-autodownload" ]
else []
runConfigure "." [] $ defaultArgs ++ [args]
SkipConfigure -> unlessM (doesFileExist cfg) $
putError $ "Configuration file " ++ cfg ++ " is missing.\n"
++ "Run the configure script either manually or via the "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment