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
0678acb6
Commit
0678acb6
authored
Feb 08, 2016
by
Andrey Mokhov
Browse files
Run mk/get-win32-tarballs.sh on Windows.
See
#204
.
parent
d5e2d927
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Rules/Setup.hs
View file @
0678acb6
...
...
@@ -17,10 +17,13 @@ setupRules = do
RunConfigure
args
->
do
need
[
settings
<.>
"in"
,
cfgH
<.>
"in"
]
-- 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
]
when
(
System
.
Info
.
os
==
"mingw32"
)
$
do
putBuild
"| Checking for Windows tarballs..."
quietly
$
cmd
[
"bash"
,
"mk/get-win32-tarballs.sh"
,
"download"
,
System
.
Info
.
arch
]
runConfigure
"."
[]
[
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