summaryrefslogtreecommitdiff
path: root/src/Settings/Flavours/Performance.hs
blob: 64ab4bce9d3a6eaa6f5f4a5a4e733a6ba8321284 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module Settings.Flavours.Performance (performanceFlavour) where

import Expression
import Flavour
import {-# SOURCE #-} Settings.Default

-- Please update doc/flavours.md when changing this file.
performanceFlavour :: Flavour
performanceFlavour = defaultFlavour
    { name = "perf"
    , args = defaultBuilderArgs <> performanceArgs <> defaultPackageArgs }

performanceArgs :: Args
performanceArgs = sourceArgs SourceArgs
    { hsDefault  = pure ["-O", "-H64m"]
    , hsLibrary  = notStage0 ? arg "-O2"
    , hsCompiler = mconcat [stage0 ? arg "-O", notStage0 ? arg "-O2"]
    , hsGhc      = mconcat [stage0 ? arg "-O", notStage0 ? arg "-O2"] }