[commit: ghc] wip/nfs-locking: Reverse the target list passed to need (otherwise the targets are build in reverse order). (b397bb3)

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


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

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

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

commit b397bb360a980c60290df89a6b358b614edce5a9
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Fri Aug 7 12:25:28 2015 +0100

    Reverse the target list passed to need (otherwise the targets are build in reverse order).


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

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

diff --git a/src/Rules.hs b/src/Rules.hs
index 2509cf7..43f5922 100644
--- a/src/Rules.hs
+++ b/src/Rules.hs
@@ -38,7 +38,7 @@ generateTargets = action $ do
 
             return $ ghciLib ++ libs
 
-    need targets
+    need $ reverse targets
 
 -- TODO: add Stage2 (compiler only?)
 packageRules :: Rules ()



More information about the ghc-commits mailing list