[commit: ghc] wip/nfs-locking: Adds derivedConstantsDependencies for rts (2565fc3)

git at git.haskell.org git at git.haskell.org
Thu Oct 26 23:53:59 UTC 2017


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

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

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

commit 2565fc354a241ff9f6137c5202949a6f8f46bff9
Author: Moritz Angermann <moritz.angermann at gmail.com>
Date:   Tue Jan 5 11:14:20 2016 +0800

    Adds derivedConstantsDependencies for rts
    
    Building rts depends on derived constants, as we can not rely on the compiler to be build prior to rts,
    as we build rts with gcc, and hence do not depend on ghc, we need to have rts depend on the derived
    constants. This fixes #94. However, if we are going to build rts with the stage1 ghc, this should not be
    an issue anymore (see #90), as derived constants would be build then anyway. Yet I do not see any
    problem with explicilty noting down the derived constants dependency for rts.


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

2565fc354a241ff9f6137c5202949a6f8f46bff9
 src/Rules/Generate.hs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/Rules/Generate.hs b/src/Rules/Generate.hs
index 6a4270b..65c0abf 100644
--- a/src/Rules/Generate.hs
+++ b/src/Rules/Generate.hs
@@ -72,6 +72,7 @@ compilerDependencies stage =
 generatedDependencies :: Stage -> Package -> [FilePath]
 generatedDependencies stage pkg
     | pkg == compiler = compilerDependencies stage
+    | pkg == rts = derivedConstantsDependencies
     | stage == Stage0 = defaultDependencies
     | otherwise = []
 



More information about the ghc-commits mailing list