Skip to content

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"                                            
    ] 
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information