[commit: ghc] wip/nfs-locking: Add a target for threaded rts library. (8f9dd7e)

git at git.haskell.org git at git.haskell.org
Thu Oct 26 23:57:55 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/nfs-locking
Link       : http://ghc.haskell.org/trac/ghc/changeset/8f9dd7ed189b075faecea5224fb147b7743b16f7/ghc

>---------------------------------------------------------------

commit 8f9dd7ed189b075faecea5224fb147b7743b16f7
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Fri Jan 29 01:07:11 2016 +0000

    Add a target for threaded rts library.
    
    See #98.


>---------------------------------------------------------------

8f9dd7ed189b075faecea5224fb147b7743b16f7
 src/Rules.hs | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/Rules.hs b/src/Rules.hs
index 31489f3..5f505b3 100644
--- a/src/Rules.hs
+++ b/src/Rules.hs
@@ -15,9 +15,10 @@ allStages = [minBound ..]
 -- | 'need' all top-level build targets
 generateTargets :: Rules ()
 generateTargets = action $ do
-    targets <- fmap concat (traverse targetsForStage allStages)
-    rtsLib <- pkgLibraryFile Stage1 rts "rts" vanilla
-    need $ targets ++ installTargets ++ [ rtsLib ]
+    targets   <- fmap concat (traverse targetsForStage allStages)
+    rtsLib    <- pkgLibraryFile Stage1 rts "rts" vanilla
+    rtsThrLib <- pkgLibraryFile Stage1 rts "rts" threaded
+    need $ targets ++ installTargets ++ [ rtsLib, rtsThrLib ]
 
 targetsForStage :: Stage -> Action [String]
 targetsForStage stage = do



More information about the ghc-commits mailing list