[commit: ghc] master: build.mk: Add option for debug symbols (b7265ff)

git at git.haskell.org git at git.haskell.org
Tue Feb 21 00:20:01 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/b7265ffa06d5481f598aeba93c1a432204408ec2/ghc

>---------------------------------------------------------------

commit b7265ffa06d5481f598aeba93c1a432204408ec2
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Mon Feb 20 19:08:59 2017 -0500

    build.mk: Add option for debug symbols


>---------------------------------------------------------------

b7265ffa06d5481f598aeba93c1a432204408ec2
 mk/build.mk.sample | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/mk/build.mk.sample b/mk/build.mk.sample
index 4175dc7..6bceca3 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



More information about the ghc-commits mailing list