diff options
Diffstat (limited to 'rules/distdir-opts.mk')
-rw-r--r-- | rules/distdir-opts.mk | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/rules/distdir-opts.mk b/rules/distdir-opts.mk index b3dfba1c44..6cabac35d2 100644 --- a/rules/distdir-opts.mk +++ b/rules/distdir-opts.mk @@ -11,7 +11,7 @@ # ----------------------------------------------------------------------------- -# Set compilation flags that additionally depend on a particular way +# Set compilation flags that do not depend on a particular way define distdir-opts # args: $1 = dir, $2 = distdir, $3 = stage @@ -89,5 +89,23 @@ $1_$2_ALL_HAPPY_OPTS = \ $$($1_$2_HAPPY_OPTS) \ $$(EXTRA_HAPPY_OPTS) +# We don't bother splitting the bootstrap packages (built with stage 0) +ifeq "$$($1_$2_SplitObjs)" "" +ifeq "$$(SplitObjs) $3" "YES 1" +$1_$2_SplitObjs = YES +else +$1_$2_SplitObjs = NO +endif +endif +# Disable split sections when building with stage0, it won't be supported yet +# and it's probably not very relevant anyway (smaller stage1 ghc?). +ifeq "$$($1_$2_SplitSections)" "" +ifeq "$3" "1" +$1_$2_SplitSections = $(SplitSections) +else +$1_$2_SplitSections = NO +endif +endif + endef |