Commit a50082c1 authored by olsner's avatar olsner Committed by Ben Gamari
Browse files

Apply SplitSections to all C compilations

Previously this was added only to the RTS's C files (those are the bulk
of it though), but there are C bits in ghc-prim, integer-gmp and base

Followup for #8405, allows the large table of character properties in
base to be stripped when not used.

Test Plan: validate

Reviewers: austin, bgamari, simonmar

Reviewed By: bgamari

Subscribers: thomie, snowleopard

Differential Revision:
parent 6b4e46a1
......@@ -335,10 +335,6 @@ ifeq "$$(TargetOS_CPP)" "mingw32"
ifeq "$(SplitSections)" "YES"
rts_CC_OPTS += -ffunction-sections -fdata-sections
# Flags for compiling specific files
rts/RtsMessages_CC_OPTS += -DProjectVersion=\"$(ProjectVersion)\"
......@@ -190,7 +190,8 @@ $1_$2_$3_ALL_CC_OPTS = \
$$($1_$2_$3_CC_OPTS) \
$$($$(basename $$<)_CC_OPTS) \
$$($1_$2_EXTRA_CC_OPTS) \
$$(if $$(findstring YES,$$($1_$2_SplitSections)),-ffunction-sections -fdata-sections)
$1_$2_$3_GHC_CC_OPTS = \
$$(addprefix -optc, $$($1_$2_$3_ALL_CC_OPTS)) \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment