Skip to content

hadrian: don't add debug info to non-debug ways of rts

Cheng Shao requested to merge type-dance/ghc:rts-no-dwarf-in-nondebug into master

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.

Merge request reports