-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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: don't invoke the linker for non-ELF targets when -c is passed #7094
Comments
Using
|
@LemonBoy thanks for the reply. Arch Linux does not package static libraries and it would be a huge mess to compile all of these dependencies to get the static libs. As I stated in the bug description, this worked before with zig c++, does anyone know if this feature of can be disabled? When i try to compile with
|
It's not a feature, it's a bug :)
It doesn't also handle the |
Zig actually supports this case, taking advantage of the For the purposes of this issue, I think for 0.7.1 this will look like simply omitting the For completely solving this issue, it will look like skipping the linking step altogether when building objects. This will be more involved because we currently rely on the fact that the linker step produces a new build artifact based on another one. So we will either do a simple copy or make the caching system more complex. |
I'm getting the following error with zig build (c++).
build.zig
When I change
zig c++
tog++
the it works. I haven't used this bit of my project in a while, so not sure when it broke. I assume it occurred after the llvm 11 upgrade.My setup:
OS: Arch Linux
Zig Version: 0.7.0 installed from the tar.gz available on the downloads page.
This looks similar to #6996
The text was updated successfully, but these errors were encountered: