[commit: ghc] wip/nfs-locking: Fix profiled GHC context (7b4fdfb)

git at git.haskell.org git at git.haskell.org
Fri Oct 27 00:53:21 UTC 2017


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

On branch  : wip/nfs-locking
Link       : http://ghc.haskell.org/trac/ghc/changeset/7b4fdfba5f8a58c742a23a70b70085830f540e0e/ghc

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

commit 7b4fdfba5f8a58c742a23a70b70085830f540e0e
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Tue Aug 1 01:39:38 2017 +0100

    Fix profiled GHC context
    
    See #387


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

7b4fdfba5f8a58c742a23a70b70085830f540e0e
 src/Settings.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Settings.hs b/src/Settings.hs
index c1d4fbb..b65a17b 100644
--- a/src/Settings.hs
+++ b/src/Settings.hs
@@ -70,7 +70,7 @@ integerLibraryName = pkgNameString $ integerLibrary flavour
 
 programContext :: Stage -> Package -> Context
 programContext stage pkg
-    | pkg == ghc && ghcProfiled flavour = Context stage pkg profiling
+    | pkg == ghc && ghcProfiled flavour && stage > Stage0 = Context stage pkg profiling
     | otherwise = vanillaContext stage pkg
 
 -- TODO: switch to Set Package as the order of packages should not matter?



More information about the ghc-commits mailing list