Commit e5085db5 authored by Simon Marlow's avatar Simon Marlow

Fixes to the rts C flags for the debug way

An earlier attempt at cleaning things up had made the debug way
compile with optimisation due to flag ordering issues.
parent 56d68de5
......@@ -370,8 +370,8 @@ LAX_DEPENDENCIES = NO
# optimisation both for C code (-optc-O2) and .cmm code (-O2). For
# the debugging RTS flavour, rts/ overrides these to turn off
# optimisation.
GhcRtsHcOpts=-optc-O2 -O2
GhcRtsCcOpts=-O2 -fomit-frame-pointer
# Include the front panel code? Needs GTK+.
GhcRtsWithFrontPanel = NO
......@@ -137,7 +137,7 @@ rts_dist_$1_CC_OPTS := $$(GhcRtsCcOpts)
# The per-way CC_OPTS
ifneq "$$(findstring debug, $1)" ""
rts_dist_$1_HC_OPTS += -O0
rts_dist_$1_CC_OPTS += -g -O0
rts_dist_$1_CC_OPTS += -fno-omit-frame-pointer -g -O0
ifneq "$$(findstring dyn, $1)" ""
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment