[commit: ghc] master: Adds `smp` flag to rts.cabal. (d5ff33d)

git at git.haskell.org git at git.haskell.org
Thu Feb 15 01:51:25 UTC 2018


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

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

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

commit d5ff33d34b0d8eb26b496a809a2f73e83ea59573
Author: Moritz Angermann <moritz.angermann at gmail.com>
Date:   Sat Nov 25 20:49:56 2017 +0800

    Adds `smp` flag to rts.cabal.
    
    Reviewers: bgamari, erikd, simonmar
    
    Reviewed By: simonmar
    
    Subscribers: rwbarton, thomie, carter
    
    Differential Revision: https://phabricator.haskell.org/D4393


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

d5ff33d34b0d8eb26b496a809a2f73e83ea59573
 rts/rts.cabal.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/rts/rts.cabal.in b/rts/rts.cabal.in
index 53b6271..ce9d751 100644
--- a/rts/rts.cabal.in
+++ b/rts/rts.cabal.in
@@ -24,6 +24,8 @@ flag 64bit
   default: @Cabal64bit@
 flag leading-underscore
   default: @CabalLeadingUnderscore@
+flag smp
+  default: True
 
 library
     -- rts is a wired in package and
@@ -72,6 +74,8 @@ library
     if flag(libdw)
        -- for backtraces
        extra-libraries: elf dw
+    if !flag(smp)
+       cpp-options: -DNOSMP
 
     include-dirs: build ../includes includes
                   includes/dist-derivedconstants/header @FFIIncludeDir@



More information about the ghc-commits mailing list