Squashed 'hadrian/' content from commit 438dc57
[ghc.git] / src / Settings / Flavours / Development.hs
1 module Settings.Flavours.Development (developmentFlavour) where
2
3 import Expression
4 import Flavour
5 import {-# SOURCE #-} Settings.Default
6
7 -- Please update doc/flavours.md when changing this file.
8 developmentFlavour :: Stage -> Flavour
9 developmentFlavour ghcStage = defaultFlavour
10 { name = "devel" ++ show (fromEnum ghcStage)
11 , args = defaultBuilderArgs <> developmentArgs ghcStage <> defaultPackageArgs }
12
13 developmentArgs :: Stage -> Args
14 developmentArgs ghcStage = do
15 stage <- getStage
16 sourceArgs SourceArgs
17 { hsDefault = pure ["-O", "-H64m"]
18 , hsLibrary = notStage0 ? arg "-dcore-lint"
19 , hsCompiler = succ stage == ghcStage ? pure ["-O0", "-DDEBUG"]
20 , hsGhc = succ stage == ghcStage ? pure ["-O0", "-DDEBUG"] }