Don't make ghc threaded if GhcNotThreaded is YES
authorIan Lynagh <igloo@earth.li>
Mon, 20 Nov 2006 12:16:31 +0000 (12:16 +0000)
committerIan Lynagh <igloo@earth.li>
Mon, 20 Nov 2006 12:16:31 +0000 (12:16 +0000)
compiler/Makefile
compiler/Makefile.ghcbin

index 78bddee..70a0e72 100644 (file)
@@ -423,8 +423,10 @@ ifeq "$(GhcEnableTablesNextToCode) $(GhcUnregisterised)" "YES NO"
 SRC_HC_OPTS += -DGHCI_TABLES_NEXT_TO_CODE
 endif
 
+ifneq "$(GhcNotThreaded)" "YES"
 # Use threaded RTS with GHCi, so threads don't get blocked at the prompt.
 SRC_HC_OPTS += -threaded
+endif
 
 ALL_DIRS += ghci
 
index 7b25fb3..96bed25 100644 (file)
@@ -31,7 +31,9 @@ ifeq "$(GhcWithInterpreter)" "YES"
 SRC_HC_OPTS += -DGHCI -DBREAKPOINT
 endif
 
+ifneq "$(GhcNotThreaded)" "YES"
 SRC_HC_OPTS += -threaded
+endif
 
 odir=stage$(stage)