[commit: ghc] wip/nfs-locking: Remove dependency on rts for programs built in Stage0 (daa4b7c)

git at git.haskell.org git at git.haskell.org
Fri Oct 27 00:47:27 UTC 2017


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

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

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

commit daa4b7c1ff6f55a5c8141c33fd36414581828392
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Sat Jan 7 14:32:20 2017 +0000

    Remove dependency on rts for programs built in Stage0


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

daa4b7c1ff6f55a5c8141c33fd36414581828392
 src/Rules/Program.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Rules/Program.hs b/src/Rules/Program.hs
index b1577e2..254284a 100644
--- a/src/Rules/Program.hs
+++ b/src/Rules/Program.hs
@@ -74,7 +74,7 @@ buildBinary rs context at Context {..} bin = do
         then hsSources context
         else do
             needContext =<< contextDependencies context
-            when (package == ghc) $ do
+            when (stage > Stage0) $ do
                 ways <- interpretInContext context (getLibraryWays <> getRtsWays)
                 needContext [ rtsContext { way = w } | w <- ways ]
             let path = buildPath context



More information about the ghc-commits mailing list