blob: a856bc9d179bfe0a934ed6c96a97acf299c626da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
module Settings.Flavours.Performance (performanceFlavour, performanceArgs) where
import Expression
import Flavour
import {-# SOURCE #-} Settings.Default
-- Please update doc/flavours.md when changing this file.
performanceFlavour :: Flavour
performanceFlavour = splitSections $ defaultFlavour
{ name = "perf"
, args = defaultBuilderArgs <> performanceArgs <> defaultPackageArgs }
performanceArgs :: Args
performanceArgs = sourceArgs SourceArgs
{ hsDefault = pure ["-O", "-H64m"]
, hsLibrary = orM [notStage0, cross] ? arg "-O2"
, hsCompiler = pure ["-O2"]
, hsGhc = mconcat
[ andM [stage0, notCross] ? arg "-O"
, orM [notStage0, cross] ? arg "-O2"
]
}
|