Skip to content

Don't strip debug info in unoptimized builds #12016

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 24, 2020
Merged

Don't strip debug info in unoptimized builds #12016

merged 4 commits into from
Aug 24, 2020

Conversation

kripken
Copy link
Member

@kripken kripken commented Aug 23, 2020

We used to always run wasm-opt's --strip-debug when -g was not
specified, which would strip out DWARF as well as the Name section.
This changes us to leave it alone. This has no effect on release builds
(-O1+) and no effect on proper debug builds (-O0 -g), but does have
an effect on unoptimized builds (-O0) without -g, which may now contain
DWARF or the Name section now, depending on how clang and wasm-ld
were invoked.

Part of reducing unnecessary work after link, and aligning us more
with what LLVM tools normally do, see
WebAssembly/binaryen#3043

@kripken kripken requested a review from sbc100 August 23, 2020 23:22
@kripken kripken merged commit d4a4538 into master Aug 24, 2020
@kripken kripken deleted the no-nodebug branch August 24, 2020 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants