diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-11-19 11:40:28 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2020-11-19 11:42:09 -0500 |
commit | 21d74e8253d3046f187028528f2bfcc8050d0a70 (patch) | |
tree | 8121a7ced31e12a8cd29eb88f2c58962f2c6fc65 | |
parent | 8150f6546e6fd0006252e245d5697f13ffd8ce3e (diff) | |
download | haskell-21d74e8253d3046f187028528f2bfcc8050d0a70.tar.gz |
hadrian: Disable stripping when debug information is enabledwip/hadrian-no-strip
-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 |