diff options
Diffstat (limited to 'hadrian/src/Flavour.hs')
-rw-r--r-- | hadrian/src/Flavour.hs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/hadrian/src/Flavour.hs b/hadrian/src/Flavour.hs index d2adbe356e..a75976f73a 100644 --- a/hadrian/src/Flavour.hs +++ b/hadrian/src/Flavour.hs @@ -80,9 +80,11 @@ werror = addArgs (builder Ghc ? notStage0 ? arg "-Werror") -- | Build C and Haskell objects with debugging information. enableDebugInfo :: Flavour -> Flavour -enableDebugInfo = addArgs $ mconcat - [ builder (Ghc CompileHs) ? notStage0 ? arg "-g3" - , builder (Cc CompileC) ? notStage0 ? arg "-g3" +enableDebugInfo = addArgs $ notStage0 ? mconcat + [ builder (Ghc CompileHs) ? arg "-g3" + , builder (Cc CompileC) ? arg "-g3" + , builder (Cabal Setup) ? arg "--disable-library-stripping" + , builder (Cabal Setup) ? arg "--disable-executable-stripping" ] -- | Enable the ticky-ticky profiler in stage2 GHC |