-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
zig cc cannot compile from stdin #10389
Copy link
Copy link
Open
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorzig ccZig as a drop-in C compiler featureZig as a drop-in C compiler feature
Milestone
Description
Zig Version
0.9.0
Steps to Reproduce
Running this command to compile a program from stdin
echo 'int main(){}' | zig cc -xc -
Expected Behavior
The same command succeeds with clang.
echo 'int main(){}' | clang -xc -
produces an executable a.out that does nothing.
Actual Behavior
zig cc gives the following output and nothing else:
error: FileNotFound
This means that zig cc is not a drop-in solution for projects that dynamically generate c/c++ source code during the build process which is directly piped to the compiler.
This issue was fixed previously but in a different context: #6271
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorzig ccZig as a drop-in C compiler featureZig as a drop-in C compiler feature