Implement Hadrian flavours for debug and debug profiling builds
It would be good to implement flavours which build a compiler with -debug
and likewise for -prof -debug
.
As a start, here is the flavour I use to build a quick compiler with debug enabled.
dbg = quickFlavour { name = "dbg", ghcDebugged = True,
args = (args quickFlavour) <> dbgArgs }
dbgArgs =
mconcat
[ builder Ghc ? notStage0 ? arg "-debug"
, builder Ghc ? notStage0 ? arg "-g"
]