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
make -fcompiler_rt default to enabled when building static libraries #1993
Comments
These functions are provided automatically by Zig when you use One thing it may make sense to do is to provide these symbols but with |
That sounds great. This is not holding me up, I just noticed that I was linking in an extra dependency that I don't want. Mark. |
I want to note - LLVM emits libcalls to these functions; its generated code depends on them being available. Furthermore, when the optimizer runs it may collapse a for loop into a call to memset or memcpy, or other functions such as these. Zig provides all these functions in compiler_rt and builtin. So you cannot escape them as dependencies, but you can rely on the dependencies always being fulfilled. |
I see. The dependency is supplied in zig's stdlib. |
That's correct, they are supplied by zig's stdlib, in |
Thanks for the attention. Great service! |
Zig has |
@andrewrk Thanks I will look at --bundle-compiler-rt. This issue arose when trying to integrate zig with https://ultibo.org which is taking lower priority to zig-only solutions. |
I also need this for armv6, and another test case was missing memcpy.
I see something similar in #254 which is closed.
debian9/x64
Linux localhost 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: