summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-01-16 15:09:01 +0000
committerIan Lynagh <igloo@earth.li>2011-01-16 15:09:01 +0000
commit437f89151dac9f70b833b7ab0d34bf170f8a3585 (patch)
tree8a811d1d8c6a32b3b3ea4cbb42449a6c2312f0fa /rules
parenta54c59a58b6bb2fb5bbfd7378c55c4e0317442c4 (diff)
downloadhaskell-437f89151dac9f70b833b7ab0d34bf170f8a3585.tar.gz
Fix cross-package dependency generation on Windows
Diffstat (limited to 'rules')
-rw-r--r--rules/build-dependencies.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/rules/build-dependencies.mk b/rules/build-dependencies.mk
index 5cc91dc582..f896b9fb6f 100644
--- a/rules/build-dependencies.mk
+++ b/rules/build-dependencies.mk
@@ -40,7 +40,10 @@ ifneq "$$($1_$2_SLASH_MODS)" ""
if test ! -d $$$$dir; then mkdir -p $$$$dir; fi \
done
endif
- mv $$@.tmp $$@
+# Some packages are from the bootstrapping compiler, so are not
+# within the build tree. On Windows this causes a problem as they look
+# like bad rules, due to the two colons, so we filter them out.
+ grep -v ' : [a-zA-Z]:/' $$@.tmp > $$@
# Some of the C files depend on the generated includes files.
$$($1_$2_depfile_c_asm) : $$(includes_H_CONFIG) $$(includes_H_PLATFORM)