-
-
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 silently ignores -fuse-ld=
option
#18357
Comments
Sneaky workaround, if using CMake when compiling, might be to switch to
keeping in mind that the unadulterated
|
Currently, Zig allows you to switch between lld or zld (WiP) using the However, with zig: warning: argument unused during compilation: '-fuse-ld=ld' [-Wunused-command-line-argument]
zig: warning: argument unused during compilation: '-stdlib=libstdc++' [-Wunused-command-line-argument] cc: @kubkon |
As a general direction, we do not want to expose |
Also please note that |
Just been bit by this while trying to use the mold linker, would you accept a patch implementing EDIT: thinking about it, |
Is ZLD meant to be compatible with On Fedora I often have to explicitly provide I am curious why static linking doesn't work (seems potentially similar to this comment for I tried both the fedora package of |
Zig Version
0.11.0
Steps to Reproduce and Observed Behavior
This is a follow-up to
First issue wants to simply opt out from
zig cc
for linking to workaround a missing linker argument (and that is also my original desire, my issue is #18356)The second issue mentions something about cgo, which I admit I don't really understand.
So far, from what I was able to find in GitHub issues, the discussion about the missing/uneffective argument went like this
Expected Behavior
I am able to pick my own linker and ignore the
zig cc
's.The text was updated successfully, but these errors were encountered: