From b7265ffa06d5481f598aeba93c1a432204408ec2 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Mon, 20 Feb 2017 19:08:59 -0500 Subject: build.mk: Add option for debug symbols --- mk/build.mk.sample | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mk/build.mk.sample') 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 -- cgit v1.2.1