[commit: ghc] master: Pass 'threaded' flag to the GHC executable (#689) (996afc7)

git at git.haskell.org git at git.haskell.org
Tue Oct 23 20:20:52 UTC 2018


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

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

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

commit 996afc7daaea8de48bec92de3b30c632ccc8dfad
Author: Alp Mestanogullari <alpmestan at gmail.com>
Date:   Mon Oct 1 18:36:09 2018 +0200

    Pass 'threaded' flag to the GHC executable (#689)


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

996afc7daaea8de48bec92de3b30c632ccc8dfad
 src/Settings/Packages.hs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/Settings/Packages.hs b/src/Settings/Packages.hs
index ab9e8df..8ee2436 100644
--- a/src/Settings/Packages.hs
+++ b/src/Settings/Packages.hs
@@ -82,7 +82,11 @@ packageArgs = do
 
           , builder (Cabal Flags) ? mconcat
             [ ghcWithInterpreter ? notStage0 ? arg "ghci"
-            , flag CrossCompiling ? arg "-terminfo" ] ]
+            , flag CrossCompiling ? arg "-terminfo"
+            -- the 'threaded' flag is True by default, but
+            -- let's record explicitly that we link all ghc
+            -- executables with the threaded runtime.
+            , arg "threaded" ] ]
 
         -------------------------------- ghcPkg --------------------------------
         , package ghcPkg ?



More information about the ghc-commits mailing list