From 680f11d3f1ad9065c4969ed5d9db857cc245d778 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Mon, 20 Nov 2006 12:16:31 +0000 Subject: [PATCH] Don't make ghc threaded if GhcNotThreaded is YES --- compiler/Makefile | 2 ++ compiler/Makefile.ghcbin | 2 ++ 2 files changed, 4 insertions(+) diff --git a/compiler/Makefile b/compiler/Makefile index 78bddee..70a0e72 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -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 diff --git a/compiler/Makefile.ghcbin b/compiler/Makefile.ghcbin index 7b25fb3..96bed25 100644 --- a/compiler/Makefile.ghcbin +++ b/compiler/Makefile.ghcbin @@ -31,7 +31,9 @@ ifeq "$(GhcWithInterpreter)" "YES" SRC_HC_OPTS += -DGHCI -DBREAKPOINT endif +ifneq "$(GhcNotThreaded)" "YES" SRC_HC_OPTS += -threaded +endif odir=stage$(stage) -- 1.7.10.4