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
fix: undefined reference to `__zig_probe_stack' #792
Conversation
I'm pretty sure we have comptime checks that fail the build if you try to do ReleaseFast. |
44f7d72
to
38d5e78
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Matheus,
It's worth adding a comment:
// Bundle rt to allow linking this static library
// with the final artifact using something other than Zig.
Could you please add static_lib.pie = true
as well? So we follow the same configuration used by Go client's static libraries:
Hi @batiati , I have added the suggestion and the build has worked with gcc 13 (archlinux). At first sight, I think that the settings between bindings are standalone. Right? |
I'm not sure if I'm following, but the other bindings (clients) compile their libs independently, so it's not duplicated but only following the same build configuration for similar use cases (i.e. both c_client and go_client produce static libraries). Did I get your question answered? (...) Maybe we can extract this part in a helper function, just like We can also place the comment there: // Bundle rt to allow linking this static library
// with the final artifact using something other than Zig. Looking at the code, shared libs have even more repeated code, but it can be done by another PR! |
Yeah!!
Ok. |
allows another C compiler link to this library.
abd9b59
to
6369618
Compare
0cbd19b
Allows another C compiler link to this library.
If the library allowed build
ReleaseFast
then this command would be useless.cc: @batiati @kprotty
Reference:
Pre-merge checklist