use GhcRtsHcOpts and GhcRtsCcOpts for the debug way too
authorSimon Marlow <marlowsd@gmail.com>
Tue, 29 Jan 2013 09:34:12 +0000 (09:34 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 29 Jan 2013 10:12:28 +0000 (10:12 +0000)
rts/ghc.mk

index 1119a88..58d46de 100644 (file)
@@ -131,13 +131,13 @@ define build-rts-way # args: $1 = way
 
 ifneq "$$(BINDIST)" "YES"
 
+rts_dist_$1_HC_OPTS := $$(GhcRtsHcOpts)
+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
-else
-rts_dist_$1_HC_OPTS = $$(GhcRtsHcOpts)
-rts_dist_$1_CC_OPTS = $$(GhcRtsCcOpts)
+rts_dist_$1_HC_OPTS += -O0
+rts_dist_$1_CC_OPTS += -g -O0
 endif
 
 ifneq "$$(findstring dyn, $1)" ""