summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Graf <sebastian.graf@kit.edu>2021-02-24 12:47:21 +0100
committerSebastian Graf <sebastian.graf@kit.edu>2021-02-24 12:51:00 +0100
commit39e149e490d87882ab9429b58adbe48f50ac0f7e (patch)
tree177dd0850c2d1363369bacad56085270abb841a8
parent4a9d856d21c67b3328e26aa68a071ec9a824a7bb (diff)
downloadhaskell-wip/T19405.tar.gz
hadrian: ticky_ghc should build all things with -ticky (#19405) [skip ci]wip/T19405
With this patch, everything built by the stage1 compiler (in a `ticky_ghc`-transformed flavour) will be built with `-ticky`. Fixes #19405.
-rw-r--r--hadrian/src/Flavour.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/hadrian/src/Flavour.hs b/hadrian/src/Flavour.hs
index 7339eb6fb1..3f2b30352e 100644
--- a/hadrian/src/Flavour.hs
+++ b/hadrian/src/Flavour.hs
@@ -156,12 +156,11 @@ enableDebugInfo = addArgs $ notStage0 ? mconcat
-- | Enable the ticky-ticky profiler in stage2 GHC
enableTickyGhc :: Flavour -> Flavour
enableTickyGhc =
- addArgs $ foldMap enableTickyFor [ghc, compiler, base]
- where
- enableTickyFor pkg = stage1 ? package pkg ? mconcat
+ addArgs $ stage1 ? mconcat
[ builder (Ghc CompileHs) ? ticky
, builder (Ghc LinkHs) ? ticky
]
+ where
ticky = mconcat
[ arg "-ticky"
, arg "-ticky-allocd"