Compile the RTS with -g by default
authorSimon Marlow <marlowsd@gmail.com>
Tue, 13 Jan 2015 20:23:35 +0000 (20:23 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 13 Jan 2015 20:34:13 +0000 (20:34 +0000)
Having debugging info doesn't hurt performance, can be stripped from
binaries, and it's useful for debugging and profiling.

mk/config.mk.in

index 8f134bc..40c66d9 100644 (file)
@@ -344,7 +344,7 @@ LAX_DEPENDENCIES = NO
 # the debugging RTS flavour, rts/ghc.mk overrides these to turn off
 # optimisation.
 GhcRtsHcOpts=-O2
-GhcRtsCcOpts=-O2 -fomit-frame-pointer
+GhcRtsCcOpts=-O2 -fomit-frame-pointer -g
 
 # Include support for CPU performance counters via the PAPI library in the RTS?
 # (PAPI: http://icl.cs.utk.edu/papi/)