Skip to content
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

Don't strip by default in cc or c++ #11207

Merged
merged 1 commit into from
Mar 18, 2022
Merged

Conversation

sfackler
Copy link
Contributor

gcc and clang do not strip by default, so it seems like zig cc and zig c++ should match that behavior. For reference, current behavior been around ever since zig cc and zig c++ were first added: ead50ea.

If there's concern about making this change directly, we could add a flag to explicitly disable stripping, since currently it looks like the only way to do that is to enable some level of debuginfo in this invocation of the compiler.

Closes #11194.

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.

zig cc strips debuginfo from object files
2 participants