-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Weird bug around handling -v flag in zig cc -target #22269
Copy link
Copy link
Closed as duplicate
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorregressionIt worked in a previous version of Zig, but stopped working.It worked in a previous version of Zig, but stopped working.zig ccZig as a drop-in C compiler featureZig as a drop-in C compiler feature
Milestone
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorregressionIt worked in a previous version of Zig, but stopped working.It worked in a previous version of Zig, but stopped working.zig ccZig as a drop-in C compiler featureZig as a drop-in C compiler feature
Type
Fields
Give feedbackNo fields configured for issues without a type.
Zig Version
0.14.0-dev.2540+f857bf72e
Steps to Reproduce and Observed Behavior
zig cc -target x86_64-linux-gnu.2.35with:-v # or -xc -E -v -zig: error: version '.2.35' in target triple 'x86_64-unknown-linux-gnu.2.35' is invalidor UnknownApplicationBinaryInterface.Also reproducible on discord: https://discord.com/channels/605571803288698900/1319191118163873812/1319191118163873812
Expected Behavior
zig cc -target x86_64-linux-gnu.2.35 -vshould succeed.Other build systems like meson or cmake validates availability of a C compiler by running
cc -xc -E -v -.If
zig cc -vfails, the build system will fail.