diff options
author | Ben Gamari <ben@smart-cactus.org> | 2021-12-18 19:31:35 -0500 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2022-04-28 13:41:04 +0100 |
commit | 7deb67a77a9b5d90b061f70799a19780b5e3a672 (patch) | |
tree | c308b3e8549fce21c7c084aaa9223abef98a7a92 | |
parent | 81cf52bb301592ff3d043d03eb9a0d547891a3e1 (diff) | |
download | haskell-7deb67a77a9b5d90b061f70799a19780b5e3a672.tar.gz |
hadrian: Clean up flavour transformer definitionswip/flavour-cleanup
Previously the `ipe` and `omit_pragmas` transformers were hackily
defined using the textual key-value syntax. Fix this.
-rw-r--r-- | hadrian/src/Flavour.hs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hadrian/src/Flavour.hs b/hadrian/src/Flavour.hs index a3b93f6094..be2d1bd8b8 100644 --- a/hadrian/src/Flavour.hs +++ b/hadrian/src/Flavour.hs @@ -205,10 +205,9 @@ enableIPE = addArgs ? pure ["-finfo-table-map", "-fdistinct-constructor-tables"] enableLateCCS :: Flavour -> Flavour -enableLateCCS = - let Right kv = parseKV "stage1.*.ghc.hs.opts += -fprof-late" - Right transformer = applySetting kv - in transformer +enableLateCCS = addArgs + $ notStage0 ? builder (Ghc CompileHs) + ? arg "-fprof-late" -- | Enable assertions for the stage2 compiler enableAssertions :: Flavour -> Flavour |