-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
zig cc strips debuginfo from object files #11194
Comments
I think the issue is that |
Yes it could. Happy to merge your pull request 👍 For some historical context: Zig does not have a |
Makes sense, thanks! |
Note that this may interact poorly with I just ran a "size test" for sqlite3: clang-13 vs zig cc:
|
Zig Version
0.10.0-dev.1355+8a43d67c3
Steps to Reproduce
test.c
with a main functiongcc -c -g test.c
zig cc
:zig cc test.o
a.out
:size -A a.out
gcc
:gcc test.o
a.out
:size -A a.out
Expected Behavior
The binary contains the
.debug_<foo>
sections generated in thetest.o
object file both when created by gcc and byzig cc
:Actual Behavior
The binary does contain debug sections when linked by gcc, but not by
zig cc
:The text was updated successfully, but these errors were encountered: