-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
zig ld: a drop-in linker replacement #8755
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
Comments
Hi @andrewrk , is zig's linker better at link time optimization? |
I can speak for the MachO linker which is now fully self-hosted (written in Zig): we currently do not offer support for LLVM's LTO (if that's what you mean that is). LLVM forces a client linker to link dynamically to LTO plugin module which I am strongly against given that we already ship statically linked LLVM. I already started a conversation with LLVM maintainers about it a while back, but didn't see it through as other stuff came up. I will need to follow it up although this is not our priority right now. |
Hmm I see. Thank for your answer:) |
Looking forward to this feature! And you can try this my rust template to get some unsupported linker flags. |
If possible, please also add |
Now that there is significant work put into Mach-O linking thanks to @kubkon, Zig is more than just a linker driver for LLD. It is now a linker that competes in the linker space, and some projects may want to use Zig as a drop-in replacement for other linkers.
This issue is to formalize that by adding an "ld" subcommand to Zig's CLI.
This issue does not block 1.0.
The text was updated successfully, but these errors were encountered: