summaryrefslogtreecommitdiff
path: root/rts/ghc.mk
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2018-07-26 17:21:48 -0400
committerBen Gamari <ben@smart-cactus.org>2018-07-27 12:29:40 -0400
commitccdc03286141bb8d365f122702dfd1f73376a402 (patch)
treef358454304f0a53495490d3887ada30ba695a1cf /rts/ghc.mk
parent60ecf43a5a0b1cc732560058a06ca5b2f2e27773 (diff)
downloadhaskell-ccdc03286141bb8d365f122702dfd1f73376a402.tar.gz
rts: More forceful cc debugging flags
Reviewers: simonmar, alpmestan Reviewed By: alpmestan Subscribers: rwbarton, thomie, carter Differential Revision: https://phabricator.haskell.org/D4999
Diffstat (limited to 'rts/ghc.mk')
-rw-r--r--rts/ghc.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/rts/ghc.mk b/rts/ghc.mk
index 61547206da..7de796ab08 100644
--- a/rts/ghc.mk
+++ b/rts/ghc.mk
@@ -154,7 +154,9 @@ 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 += -fno-omit-frame-pointer -g -O0
+rts_dist_$1_CC_OPTS += -fno-omit-frame-pointer -O0 -g3
+# Useful to ensure that inline functions can be called within GDB
+rts_dist_$1_CC_OPTS += -fkeep-inline-functions
endif
ifneq "$$(findstring dyn, $1)" ""