diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-02-11 15:07:01 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-02-21 15:14:28 -0500 |
commit | 78fbc3a364e85dc5f31f865f397cd4000294444f (patch) | |
tree | ebd180e75b94451a5681ab564f5ed30b899543de | |
parent | 7ce1b694f7be7fbf6e2d7b7eb0639e61fbe358c6 (diff) | |
download | haskell-78fbc3a364e85dc5f31f865f397cd4000294444f.tar.gz |
hadrian: Enable late-ccs when building profiled_ghc
-rw-r--r-- | hadrian/src/Flavour.hs | 8 |
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 |