summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-08-03 23:55:25 +0100
committerBen Gamari <ben@well-typed.com>2022-08-04 20:39:41 +0000
commitbad6abe28d22f69d5e661f22ace96b305dc44649 (patch)
tree8b983b48104bca788e68c486d5f9ef521e3874de
parentf20c2c91f614f5452cf375c0039b8d491675b4ee (diff)
downloadhaskell-wip/t21934.tar.gz
make: Add directory dependency on hs-boot copying ruleswip/t21934
We need to create these directories before attempting the copy, apparently this race could be observed in systems under high load. Fixes #21934
-rw-r--r--rules/hs-suffix-rules-srcdir.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/hs-suffix-rules-srcdir.mk b/rules/hs-suffix-rules-srcdir.mk
index d7143053ee..1798bfb0b1 100644
--- a/rules/hs-suffix-rules-srcdir.mk
+++ b/rules/hs-suffix-rules-srcdir.mk
@@ -38,10 +38,10 @@ $1/$2/build/%_hsc.c $1/$2/build/%_hsc.h $1/$2/build/%.hs : $1/$3/%.hsc $$$$(hsc2
# Now the rules for hs-boot files.
-$1/$2/build/%.hs-boot : $1/$3/%.hs-boot
+$1/$2/build/%.hs-boot : $1/$3/%.hs-boot | $$$$(dir $$$$@)/.
"$$(CP)" $$< $$@
-$1/$2/build/%.lhs-boot : $1/$3/%.lhs-boot
+$1/$2/build/%.lhs-boot : $1/$3/%.lhs-boot | $$$$(dir $$$$@)/.
"$$(CP)" $$< $$@
endif