[commit: ghc] ghc-7.8: Fix --enable-unregistered by passing NOSMP to .hc compiler (#8748) (2243e00)
git at git.haskell.org
git at git.haskell.org
Mon Feb 17 10:26:18 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-7.8
Link : http://ghc.haskell.org/trac/ghc/changeset/2243e007a3c3e0b12aaf47541571a351da855022/ghc
>---------------------------------------------------------------
commit 2243e007a3c3e0b12aaf47541571a351da855022
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>
(cherry picked from commit 68f0a6a6cd5bf3374fbc4a4fb09df4cbda97b61c)
>---------------------------------------------------------------
2243e007a3c3e0b12aaf47541571a351da855022
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