[Git][ghc/ghc][master] hadrian: Disable stripping when debug information is enabled

Marge Bot gitlab at gitlab.haskell.org
Sat Nov 21 06:16:04 UTC 2020



 Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
69bfbc21 by Ben Gamari at 2020-11-21T01:15:56-05:00
hadrian: Disable stripping when debug information is enabled

- - - - -


1 changed file:

- hadrian/src/Flavour.hs


Changes:

=====================================
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



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/69bfbc216c2278c9796aa999c7815c19c12b0f2c

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/69bfbc216c2278c9796aa999c7815c19c12b0f2c
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20201121/1e81eb7b/attachment.html>


More information about the ghc-commits mailing list