summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheng Shao <astrohavoc@gmail.com>2022-09-06 08:41:37 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-09-16 13:57:56 -0400
commit88c4cbdb7c2f241368c72e05ae295e19ba7c254b (patch)
tree1339a7bb5a3b9c540586cf083533e9bda6e09fb0
parent7cce70073f5017cf5514f92a900c76e47a4292a5 (diff)
downloadhaskell-88c4cbdb7c2f241368c72e05ae295e19ba7c254b.tar.gz
hadrian: enable -fprof-late only for profiling ways
-rw-r--r--hadrian/src/Flavour.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/hadrian/src/Flavour.hs b/hadrian/src/Flavour.hs
index e49ec68964..def770733d 100644
--- a/hadrian/src/Flavour.hs
+++ b/hadrian/src/Flavour.hs
@@ -237,6 +237,7 @@ enableIPE = addArgs
enableLateCCS :: Flavour -> Flavour
enableLateCCS = addArgs
$ notStage0 ? builder (Ghc CompileHs)
+ ? ((Profiling `wayUnit`) <$> getWay)
? arg "-fprof-late"
-- | Enable assertions for the stage2 compiler
@@ -525,4 +526,3 @@ builderSetting =
stages = map (\stg -> (stageString stg, stg)) allStages
pkgs = map (\pkg -> (pkgName pkg, pkg)) (ghcPackages ++ userPackages)
-