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 can't read input from stdin #6271
Comments
Maybe add this condition zig/src-self-hosted/stage2.zig Line 1174 in 42b1b6b
Then this special filename should be forwarded to clang, i think EDIT: it was moved to Line 2813 in 939b486
|
without this zig cc cannot be used as a drop-in C compiler replacement on projects using meson
|
Can confirm this makes |
This fixes #6271, which allows using `zig cc` with meson.
This fixes ziglang#6271, which allows using `zig cc` with meson.
Meson uses
CXX -E -dM -
to read all defines produced by a compiler.This fails with
zig cc
andzig c++
because the-
flag is not recognized:How can we handle it?
The text was updated successfully, but these errors were encountered: