From 39e149e490d87882ab9429b58adbe48f50ac0f7e Mon Sep 17 00:00:00 2001 From: Sebastian Graf Date: Wed, 24 Feb 2021 12:47:21 +0100 Subject: hadrian: ticky_ghc should build all things with -ticky (#19405) [skip ci] With this patch, everything built by the stage1 compiler (in a `ticky_ghc`-transformed flavour) will be built with `-ticky`. Fixes #19405. --- hadrian/src/Flavour.hs | 5 ++--- 1 file 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" -- cgit v1.2.1