[commit: ghc] wip/nfs-locking: Create .build/stage0 for libffi to be moved to. (31dbe92)

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


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

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

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

commit 31dbe92dcfd55c17c8395945050aad240fdd640c
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Tue Jan 12 21:54:53 2016 +0000

    Create .build/stage0 for libffi to be moved to.
    
    Fix #160. [skip ci]


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

31dbe92dcfd55c17c8395945050aad240fdd640c
 src/Rules/Libffi.hs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/Rules/Libffi.hs b/src/Rules/Libffi.hs
index 7e811ba..7dd0376 100644
--- a/src/Rules/Libffi.hs
+++ b/src/Rules/Libffi.hs
@@ -75,6 +75,8 @@ libffiRules = do
     libffiDependencies &%> \_ -> do
         when trackBuildSystem $ need [sourcePath -/- "Rules/Libffi.hs"]
         liftIO $ removeFiles libffiBuild ["//*"]
+        createDirectory $ buildRootPath -/- "stage0"
+
         tarballs <- getDirectoryFiles "" ["libffi-tarballs/libffi*.tar.gz"]
         when (length tarballs /= 1) $
             putError $ "libffiRules: exactly one libffi tarball expected"



More information about the ghc-commits mailing list