[commit: ghc] wip/nfs-locking: fix tracking of changes to Libffi rules file (efc92c5)

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


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

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

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

commit efc92c529a00d16f18f2708dd5898ce0ae564cd6
Author: Karel Gardas <karel.gardas at centrum.cz>
Date:   Mon Jan 18 20:23:40 2016 +0100

    fix tracking of changes to Libffi rules file


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

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

diff --git a/src/Rules/Libffi.hs b/src/Rules/Libffi.hs
index 518389e..97ebc2d 100644
--- a/src/Rules/Libffi.hs
+++ b/src/Rules/Libffi.hs
@@ -70,6 +70,7 @@ configureArguments = do
 libffiRules :: Rules ()
 libffiRules = do
     libffiDependencies &%> \_ -> do
+        when trackBuildSystem $ need [sourcePath -/- "Rules/Libffi.hs"]
         ffi_header_dir <- setting FfiIncludeDir
         use_system_ffi <- flag UseSystemFfi
         if use_system_ffi
@@ -80,7 +81,6 @@ libffiRules = do
               copyFile src (rtsBuildPath -/- file)
           putSuccess $ "| Successfully copied system supplied FFI library header files"
         else do
-            when trackBuildSystem $ need [sourcePath -/- "Rules/Libffi.hs"]
             removeDirectory libffiBuild
             createDirectory $ buildRootPath -/- stageString Stage0
 



More information about the ghc-commits mailing list