From 21d74e8253d3046f187028528f2bfcc8050d0a70 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Thu, 19 Nov 2020 11:40:28 -0500 Subject: hadrian: Disable stripping when debug information is enabled --- hadrian/src/Flavour.hs | 8 +++++--- 1 file 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 -- cgit v1.2.1