summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheng Shao <terrorjack@type.dance>2022-12-02 12:39:13 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-12-08 08:32:59 -0500
commit9ec76f61c880539114314fc3e4f96a4694f38ebe (patch)
treef3e7d28fe76cf162ec8d68cd57dc1d1e71b3e162
parent2057c77d08cb8422857d182a3691f98dccd0c7d6 (diff)
downloadhaskell-9ec76f61c880539114314fc3e4f96a4694f38ebe.tar.gz
hadrian: don't add debug info to non-debug ways of rts
Hadrian used to pass -g when building all ways of rts. It makes output binaries larger (especially so for wasm backend), and isn't needed by most users out there, so this patch removes that flag. In case the debug info is desired, we still pass -g3 when building the debug way, and there's also the debug_info flavour transformer which ensures -g3 is passed for all rts ways.
-rw-r--r--hadrian/src/Settings/Packages.hs1
1 files changed, 0 insertions, 1 deletions
diff --git a/hadrian/src/Settings/Packages.hs b/hadrian/src/Settings/Packages.hs
index 587dae16e8..128262a0ab 100644
--- a/hadrian/src/Settings/Packages.hs
+++ b/hadrian/src/Settings/Packages.hs
@@ -315,7 +315,6 @@ rtsPackageArgs = package rts ? do
-- provide non-inlined alternatives and hence needs the function to
-- be inlined. See https://github.com/snowleopard/hadrian/issues/90.
, arg "-O2"
- , arg "-g"
, arg "-Irts"
, arg $ "-I" ++ path