[commit: ghc] master: Fix --enable-unregistered by passing NOSMP to .hc compiler (#8748) (68f0a6a)

git at git.haskell.org git at git.haskell.org
Mon Feb 17 07:48:52 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/68f0a6a6cd5bf3374fbc4a4fb09df4cbda97b61c/ghc

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

commit 68f0a6a6cd5bf3374fbc4a4fb09df4cbda97b61c
Author: Sergei Trofimovich <slyfox at gentoo.org>
Date:   Thu Feb 13 07:23:02 2014 -0600

    Fix --enable-unregistered by passing NOSMP to .hc compiler (#8748)
    
    Signed-off-by: Austin Seipp <austin at well-typed.com>


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

68f0a6a6cd5bf3374fbc4a4fb09df4cbda97b61c
 compiler/ghc.mk |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/compiler/ghc.mk b/compiler/ghc.mk
index 0a18713..4977e28 100644
--- a/compiler/ghc.mk
+++ b/compiler/ghc.mk
@@ -353,6 +353,11 @@ else
 compiler_CONFIGURE_OPTS += --ghc-option=-DNO_REGS
 endif
 
+ifneq "$(GhcWithSMP)" "YES"
+compiler_CONFIGURE_OPTS += --ghc-option=-DNOSMP
+compiler_CONFIGURE_OPTS += --ghc-option=-optc-DNOSMP
+endif
+
 # Careful optimisation of the parser: we don't want to throw everything
 # at it, because that takes too long and doesn't buy much, but we do want
 # to inline certain key external functions, so we instruct GHC not to



More information about the ghc-commits mailing list