Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
1562315b
Commit
1562315b
authored
Feb 05, 2016
by
Andrey Mokhov
Browse files
Pass --enable-tarballs-autodownload to configure by default on Windows.
See
#204
.
parent
2bde60d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Rules/Config.hs
View file @
1562315b
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 "
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment