summaryrefslogtreecommitdiff
path: root/mk/build.mk.sample
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2017-02-20 19:08:59 -0500
committerBen Gamari <ben@smart-cactus.org>2017-02-20 19:19:46 -0500
commitb7265ffa06d5481f598aeba93c1a432204408ec2 (patch)
treee8301f25fdd5eba3a6b4944017e870b7995af47c /mk/build.mk.sample
parent7153370288e6075c4f8c996ff02227e48805da06 (diff)
downloadhaskell-b7265ffa06d5481f598aeba93c1a432204408ec2.tar.gz
build.mk: Add option for debug symbols
Diffstat (limited to 'mk/build.mk.sample')
-rw-r--r--mk/build.mk.sample7
1 files changed, 7 insertions, 0 deletions
diff --git a/mk/build.mk.sample b/mk/build.mk.sample
index 4175dc7cf2..6bceca3de1 100644
--- a/mk/build.mk.sample
+++ b/mk/build.mk.sample
@@ -79,6 +79,13 @@ endif
# working on stage 2 and want to freeze stage 1 and the libraries for
# a while.
+# Enable these if you would like DWARF debugging symbols for your libraries.
+# This is necessary, for instance, to get DWARF stack traces out of programs
+# built by the produced compiler. You must also pass --enable-dwarf-unwind to
+# `configure` to enable the runtime system's builtin unwinding support.
+#GhcLibHcOpts += -g3
+#GhcRtsHcOpts += -g3
+
# Build the "extra" packages (see ./packages). This enables more tests. See:
# https://ghc.haskell.org/trac/ghc/wiki/Building/RunningTests/Running#AdditionalPackages
#BUILD_EXTRA_PKGS=YES