Skip to content
Snippets Groups Projects
Commit da8ae7f2 authored by Ben Gamari's avatar Ben Gamari Committed by Marge Bot
Browse files

hadrian: Clean up flavour transformer definitions

Previously the `ipe` and `omit_pragmas` transformers were hackily
defined using the textual key-value syntax. Fix this.
parent 769279e6
No related branches found
No related tags found
No related merge requests found
......@@ -206,10 +206,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment