summaryrefslogtreecommitdiff
path: root/rts/ghc.mk
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2013-01-29 09:34:12 +0000
committerSimon Marlow <marlowsd@gmail.com>2013-01-29 10:12:28 +0000
commit1b7c1e52f207fa6038d729048b81bddb7d7ea2b1 (patch)
tree72850d72e630db2329d632ea9f456c2d4fa772b2 /rts/ghc.mk
parent0375fcb10e0914b57cfa9744e75e692552fd2672 (diff)
downloadhaskell-1b7c1e52f207fa6038d729048b81bddb7d7ea2b1.tar.gz
use GhcRtsHcOpts and GhcRtsCcOpts for the debug way too
Diffstat (limited to 'rts/ghc.mk')
-rw-r--r--rts/ghc.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/rts/ghc.mk b/rts/ghc.mk
index 1119a8803d..58d46def00 100644
--- a/rts/ghc.mk
+++ b/rts/ghc.mk
@@ -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)" ""