Skip to content

Instantly share code, notes, and snippets.

@bgamari
Created June 4, 2019 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bgamari/7143b6194d4ac4836c6a2a66bd9cfa8a to your computer and use it in GitHub Desktop.
Save bgamari/7143b6194d4ac4836c6a2a66bd9cfa8a to your computer and use it in GitHub Desktop.
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