From c5b41b6ee21f73ef706cd14eef2b6d6809099f9d Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Fri, 17 Aug 2007 20:36:07 +0000 Subject: [PATCH] Add a GhcDebugged build setting, for whether GHC is linked with -debug --- compiler/Makefile | 3 +++ compiler/Makefile.ghcbin | 3 +++ mk/config.mk.in | 1 + 3 files changed, 7 insertions(+) diff --git a/compiler/Makefile b/compiler/Makefile index 4023d72..d0c68ab 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -433,6 +433,9 @@ endif ifeq "$(GhcProfiled)" "YES" SRC_LD_OPTS += -prof endif +ifeq "$(GhcDebugged)" "YES" +SRC_LD_OPTS += -debug +endif ALL_DIRS += ghci diff --git a/compiler/Makefile.ghcbin b/compiler/Makefile.ghcbin index e75aad6..7acf0e8 100644 --- a/compiler/Makefile.ghcbin +++ b/compiler/Makefile.ghcbin @@ -45,6 +45,9 @@ endif ifeq "$(GhcProfiled)" "YES" SRC_HC_OPTS += -prof endif +ifeq "$(GhcDebugged)" "YES" +SRC_LD_OPTS += -debug +endif odir=stage$(stage) diff --git a/mk/config.mk.in b/mk/config.mk.in index b602569..0feecbd 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -224,6 +224,7 @@ else GhcThreaded=NO endif GhcProfiled=NO +GhcDebugged=NO # Build a compiler that will build *unregisterised* libraries and # binaries by default. Unregisterised code is supposed to compile and -- 1.7.10.4