From d4c5fb12cc93d0e3cdba20fca2451119125ec602 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Tue, 4 Sep 2007 10:17:29 +0000 Subject: [PATCH] make the GhcThreaded setting lazy, because GhcUnregisterised might not be set yet --- mk/config.mk.in | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mk/config.mk.in b/mk/config.mk.in index 80c52f2..c716ab0 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -357,11 +357,7 @@ endif GhcRTSWays += $(if $(findstring NO, $(GhcUnregisterised)),thr thr_p thr_debug,) # We can only build GHCi threaded if we have a threaded RTS: -ifneq "$(findstring thr, $(GhcRTSWays))" "" -GhcThreaded=YES -else -GhcThreaded=NO -endif +GhcThreaded = $(if $(findstring thr,$(GhcRTSWays)),YES,NO) # Option flags to pass to GHC when it's compiling modules in # fptools/libraries. Typically these are things like -O or -- 1.7.10.4