diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2021-11-13 15:38:21 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-11-16 03:13:10 -0500 |
commit | 3e94b5a7ebddf156f00599c6bd2e9ba1af437a6c (patch) | |
tree | 7c4baf6a8c660cce215a79634a545991f073b4c3 /rules/distdir-opts.mk | |
parent | 85f2c0ba760377e68673d9efb336ac762e04683c (diff) | |
download | haskell-3e94b5a7ebddf156f00599c6bd2e9ba1af437a6c.tar.gz |
Make: Get rid of `BUILD_.*_INCLUDE_DIRS`
First, we improve some of the rules around -I include dirs, and CPP
opts.
Then, we just specify the RTS's include dirs normally (locally per the
package and in the package conf), and then everything should work
normally.
The primops.txt.pp rule needs no extra include dirs at all, as it no
longer bakes in a target platfom.
Reverts some of the extra stage arguments I added in
05419e55cab272ed39790695f448b311f22669f7, as they are no longer needed.
Diffstat (limited to 'rules/distdir-opts.mk')
-rw-r--r-- | rules/distdir-opts.mk | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/rules/distdir-opts.mk b/rules/distdir-opts.mk index fe329c1d31..ebe56c1fd5 100644 --- a/rules/distdir-opts.mk +++ b/rules/distdir-opts.mk @@ -32,14 +32,22 @@ $1_$2_DIST_GCC_CC_OPTS = \ $$(CONF_CC_OPTS_STAGE$3) \ $$($1_$2_DIST_CC_OPTS) +$1_$2_DIST_INCLUDE_DIRS = \ + $$($1_$2_INCLUDE_DIRS) \ + $$($1_INCLUDE_DIRS) + +$1_$2_DIST_CPP_OPTS = \ + $$(foreach dir,$$(filter-out /%,$$($1_$2_DIST_INCLUDE_DIRS)),-I$1/$$(dir)) \ + $$(foreach dir,$$(filter /%,$$($1_$2_DIST_INCLUDE_DIRS)),-I$$(dir)) \ + $$($1_$2_CPP_OPTS) \ + $$($1_CPP_OPTS) + $1_$2_DIST_CC_OPTS = \ $$(SRC_CC_OPTS) \ $$($1_CC_OPTS) \ -I$1/$2/build/$$(or $$($1_EXECUTABLE),$$($1_$2_PROGNAME),.)/autogen \ - $$(foreach dir,$$(filter-out /%,$$($1_$2_INCLUDE_DIRS)),-I$1/$$(dir)) \ - $$(foreach dir,$$(filter /%,$$($1_$2_INCLUDE_DIRS)),-I$$(dir)) \ + $$($1_$2_DIST_CPP_OPTS) \ $$($1_$2_CC_OPTS) \ - $$($1_$2_CPP_OPTS) \ $$($1_$2_CC_INC_FLAGS) \ $$($1_$2_DEP_CC_OPTS) \ $$(SRC_CC_WARNING_OPTS) |