summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2016-09-16 11:49:24 -0400
committerBen Gamari <ben@smart-cactus.org>2016-09-16 11:49:25 -0400
commitea310f9956179f91ca973bc747b0bc7b061bc174 (patch)
tree0f32a6b60091c6a53f9303cbce166ef81493e58a /rules
parent97b47d277d6b0ced3ce73175f78b23ecff84cfa3 (diff)
downloadhaskell-ea310f9956179f91ca973bc747b0bc7b061bc174.tar.gz
Remove directories from include paths
Previously this was a relative path which worked in the GHC tree, but failed elsewhere. This caused trouble for out-of-tree users as well as Hadrian, which wants to move build artifacts out of the working directory. Fixes #8040. Test Plan: Validate Reviewers: thomie, austin, snowleopard, hvr Reviewed By: snowleopard, hvr Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2530 GHC Trac Issues: #8040
Diffstat (limited to 'rules')
-rw-r--r--rules/build-dependencies.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules/build-dependencies.mk b/rules/build-dependencies.mk
index 8152691c01..1905a0e4d6 100644
--- a/rules/build-dependencies.mk
+++ b/rules/build-dependencies.mk
@@ -24,6 +24,7 @@ $1_$2_C_FILES_DEPS = $$(filter-out $$($1_$2_C_FILES_NODEPS),$$($1_$2_C_FILES))
$1_$2_MKDEPENDHS_FLAGS = -dep-makefile $$($1_$2_depfile_haskell).tmp $$(foreach way,$$($1_$2_WAYS),-dep-suffix "$$(patsubst %o,%,$$($$(way)_osuf))")
$1_$2_MKDEPENDHS_FLAGS += -include-pkg-deps
+$1_$2_MKDEPENDHS_FLAGS += $(addprefix -I,$($1_INCLUDE_DIRS))
ifneq "$$(NO_GENERATED_MAKEFILE_RULES)" "YES"