Created
June 4, 2019 14:18
-
-
Save bgamari/7143b6194d4ac4836c6a2a66bd9cfa8a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/hadrian/src/Rules/Rts.hs b/hadrian/src/Rules/Rts.hs | |
index b7f39609b9..8137c62196 100644 | |
--- a/hadrian/src/Rules/Rts.hs | |
+++ b/hadrian/src/Rules/Rts.hs | |
@@ -17,9 +17,10 @@ rtsRules = priority 3 $ do | |
root -/- "//libHSrts_*-ghc*.dylib", | |
root -/- "//libHSrts-ghc*.so", | |
root -/- "//libHSrts-ghc*.dylib"] | |
- |%> \ rtsLibFilePath' -> createFileLinkUntracked | |
- (addRtsDummyVersion $ takeFileName rtsLibFilePath') | |
- rtsLibFilePath' | |
+ |%> \ rtsLibFilePath' -> do | |
+ let versioned = addRtsDummyVersion $ takeFileName rtsLibFilePath' | |
+ need [takeDirectory rtsLibFilePath' </> versioned] | |
+ createFileLinkUntracked versioned rtsLibFilePath' | |
-- Libffi | |
forM_ [Stage1 ..] $ \ stage -> do |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment