summaryrefslogtreecommitdiff
path: root/hadrian/src/Rules/Rts.hs
diff options
context:
space:
mode:
authorAndrey Mokhov <andrey.mokhov@gmail.com>2019-06-23 00:50:43 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-06-25 01:36:10 -0400
commit15b262237ab055f4afbf79588f76631a194a332f (patch)
treebb04ea8eb6e5a4fffdecc2010d7b4782589cfb7b /hadrian/src/Rules/Rts.hs
parent581cbc28e143a4ed8e7f794ed1618161222a5646 (diff)
downloadhaskell-15b262237ab055f4afbf79588f76631a194a332f.tar.gz
Fix cyclic dependencies when using --configure
This resolves #16809 (https://gitlab.haskell.org/ghc/ghc/issues/16809). This patch removes the unnecessary dependency on configure-generated flags `windowsHost`, `osxHost` and `iosHost`, using the information provided by the module `System.Info` instead. We also take care to use the `CrossCompiling` flag generated by the configure script only after the latter had a chance to run.
Diffstat (limited to 'hadrian/src/Rules/Rts.hs')
-rw-r--r--hadrian/src/Rules/Rts.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/hadrian/src/Rules/Rts.hs b/hadrian/src/Rules/Rts.hs
index c9669f520d..64864eee82 100644
--- a/hadrian/src/Rules/Rts.hs
+++ b/hadrian/src/Rules/Rts.hs
@@ -83,8 +83,7 @@ copyLibffiDynamicUnix stage libSuf target = do
copyFile' versionlessSourceFilePath target
-- On OSX the dylib's id must be updated to a relative path.
- osx <- osxHost
- when osx $ cmd
+ when osxHost $ cmd
[ "install_name_tool"
, "-id", "@rpath/" ++ takeFileName target
, target