diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-11-19 11:40:28 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-11-21 01:15:56 -0500 |
commit | 69bfbc216c2278c9796aa999c7815c19c12b0f2c (patch) | |
tree | 309e267596ae29e09e70e48e07fc1c146a4fdf41 /hadrian | |
parent | a4a6dc2a90e28c34054d0cfd4c6fd962bf4adc2e (diff) | |
download | haskell-69bfbc216c2278c9796aa999c7815c19c12b0f2c.tar.gz |
hadrian: Disable stripping when debug information is enabled
Diffstat (limited to 'hadrian')
-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 |