summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-02-11 15:07:01 +0000
committerMatthew Pickering <matthewtpickering@gmail.com>2022-02-14 13:41:54 +0000
commit6bc08863a5e25956d6c20ca4e9605e99c49268da (patch)
tree46599d28f50b94f7e7498588c65cf48f88eb190f
parentef5cf55d71e84a0a42596b4ec253ecb0d63f149b (diff)
downloadhaskell-wip/hadrian-late-ccs.tar.gz
hadrian: Enable late-ccs when building profiled_ghcwip/hadrian-late-ccs
-rw-r--r--hadrian/src/Flavour.hs8
1 files changed, 7 insertions, 1 deletions
diff --git a/hadrian/src/Flavour.hs b/hadrian/src/Flavour.hs
index c46f77a2fb..5268815f5a 100644
--- a/hadrian/src/Flavour.hs
+++ b/hadrian/src/Flavour.hs
@@ -165,7 +165,7 @@ viaLlvmBackend = addArgs $ notStage0 ? builder Ghc ? arg "-fllvm"
-- support loading of profiled libraries with the dynamically-linker.
enableProfiledGhc :: Flavour -> Flavour
enableProfiledGhc flavour =
- flavour { rtsWays = addWays [profiling, threadedProfiling, debugProfiling, threadedDebugProfiling] (rtsWays flavour)
+ enableLateCCS flavour { rtsWays = addWays [profiling, threadedProfiling, debugProfiling, threadedDebugProfiling] (rtsWays flavour)
, libraryWays = addWays [profiling] (libraryWays flavour)
, ghcProfiled = True
}
@@ -204,6 +204,12 @@ enableIPE =
Right transformer = applySetting kv
in transformer
+enableLateCCS :: Flavour -> Flavour
+enableLateCCS =
+ let Right kv = parseKV "stage1.*.ghc.hs.opts += -fprof-late-ccs"
+ Right transformer = applySetting kv
+ in transformer
+
-- | Produce fully statically-linked executables and build libraries suitable
-- for static linking.
fullyStatic :: Flavour -> Flavour