summaryrefslogtreecommitdiff
path: root/hadrian
diff options
context:
space:
mode:
authorDavid Eichmann <EichmannD@gmail.com>2019-07-17 16:14:01 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-01 16:55:33 -0400
commit9a27a06380fd706e0f2e040c4f01ae306bfd062b (patch)
tree2cc2962f4b965b3fbcad6d2c5821ab9cfcb551bb /hadrian
parent9c00217742c1f3a2582a5b36b2df57ad08062744 (diff)
downloadhaskell-9a27a06380fd706e0f2e040c4f01ae306bfd062b.tar.gz
Hadrian: Libffi rule now `produces` dynamic library files.
Diffstat (limited to 'hadrian')
-rw-r--r--hadrian/src/Rules/Libffi.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/hadrian/src/Rules/Libffi.hs b/hadrian/src/Rules/Libffi.hs
index 3d54721822..75ac1aa6ba 100644
--- a/hadrian/src/Rules/Libffi.hs
+++ b/hadrian/src/Rules/Libffi.hs
@@ -165,6 +165,10 @@ libffiRules = do
-- Note this build needs the Makefile, triggering the rules bellow.
build $ target context (Make libffiPath) [] []
+ -- Produces all install files.
+ produces =<< (\\ topLevelTargets)
+ <$> liftIO (getDirectoryFilesIO "." [libffiPath -/- "inst//*"])
+
-- Find dynamic libraries.
dynLibFiles <- do
let libfilesDir = libffiPath -/-