Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
0dfb4fb4
Commit
0dfb4fb4
authored
Nov 22, 2004
by
simonmar
Browse files
[project @ 2004-11-22 14:18:40 by simonmar]
Check the result of System.Cmd.system
parent
0daf8598
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/utils/ghc-pkg/Main.hs
View file @
0dfb4fb4
...
...
@@ -642,19 +642,18 @@ autoBuildGHCiLib dir batch_file ghci_file = do
let
ghci_lib_file
=
dir
++
'/'
:
ghci_file
batch_lib_file
=
dir
++
'/'
:
batch_file
hPutStr
stderr
(
"building GHCi library `"
++
ghci_lib_file
++
"'..."
)
#
ifdef
darwin_TARGET_OS
system
(
"ld -r -x -o "
++
ghci_lib_file
++
" -all_load "
++
batch_lib_file
)
#
else
#
ifdef
mingw32_HOST_OS
#
if
defined
(
darwin_TARGET_OS
)
r
<-
system
(
"ld -r -x -o "
++
ghci_lib_file
++
" -all_load "
++
batch_lib_file
)
#
elif
defined
(
mingw32_HOST_OS
)
execDir
<-
getExecDir
"/bin/ghc-pkg.exe"
system
(
maybe
""
(
++
"/gcc-lib/"
)
execDir
++
"ld -r -x -o "
++
ghci_lib_file
++
" --whole-archive "
++
batch_lib_file
)
r
<-
system
(
maybe
""
(
++
"/gcc-lib/"
)
execDir
++
"ld -r -x -o "
++
ghci_lib_file
++
" --whole-archive "
++
batch_lib_file
)
#
else
system
(
"ld -r -x -o "
++
ghci_lib_file
++
" --whole-archive "
++
batch_lib_file
)
#
endif
r
<-
system
(
"ld -r -x -o "
++
ghci_lib_file
++
" --whole-archive "
++
batch_lib_file
)
#
endif
when
(
r
/=
ExitSuccess
)
$
exitWith
r
hPutStrLn
stderr
(
" done."
)
-- -----------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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