Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/77e788960cad26bfdee00e0741d28fd7a78d9c22

>---------------------------------------------------------------

commit 77e788960cad26bfdee00e0741d28fd7a78d9c22
Author: Simon Marlow <marlo...@gmail.com>
Date:   Fri Jan 6 10:45:50 2012 +0000

    Enable the threaded RTS when unregisterised too.
    
    It was disabled by me in 1a470c9404950cc6737853309d35798a98ad0c30 (May
    2007), but the commit gave no explanation as to why.  Perhaps this was 
before
    we had a separate knob for GhcWithSMP.
    
    Anyway, it looks like threaded works fine with unregisterised, so I'm
    enabling it again.

>---------------------------------------------------------------

 mk/config.mk.in |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/mk/config.mk.in b/mk/config.mk.in
index 79e7c6b..7e24ead 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -263,12 +263,11 @@ ifeq "$(BootingFromHc)" "NO"
 GhcRTSWays += debug 
 endif
 
-# Want the threaded versions unless we're unregisterised
-# Defer the check until later by using $(if..), because GhcUnregisterised might
-# be set in build.mk, which hasn't been read yet.
-GhcRTSWays += $(if $(findstring NO, $(GhcUnregisterised)),thr thr_debug thr_l,)
-GhcRTSWays += $(if $(findstring p, $(GhcLibWays)),$(if $(findstring NO, 
$(GhcUnregisterised)),thr_p,),)
-GhcRTSWays += $(if $(findstring dyn, $(GhcLibWays)), dyn debug_dyn $(if 
$(findstring NO, $(GhcUnregisterised)),thr_dyn thr_debug_dyn),)
+# We always have the threaded versions, but note that SMP support may be 
disabled
+# (see GhcWithSMP).
+GhcRTSWays += thr thr_debug thr_l
+GhcRTSWays += $(if $(findstring p, $(GhcLibWays)),thr_p,)
+GhcRTSWays += $(if $(findstring dyn, $(GhcLibWays)),dyn debug_dyn thr_dyn 
thr_debug_dyn,)
 
 # We can only build GHCi threaded if we have a threaded RTS:
 GhcThreaded = $(if $(findstring thr,$(GhcRTSWays)),YES,NO)



_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to