You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zig cannot use "hyphenation" in the cpu name because we allow fine-grained feature flags appended after model name using + or -. eg: -march=x86_64-sse2 disables sse2
Unfortunately, the special case -mcpu=? is pass-thru to clang driver, and clang is listing the cpu models according to its own naming. Ideally, we'd want to intercept, and emit zig's cpu model list, ie. the same output as shown by zig cc -c foo.c -mcpu=bogus
mikdusan
added
bug
Observed behavior contradicts documented or intended behavior
and removed
bug
Observed behavior contradicts documented or intended behavior
labels
Oct 20, 2021
mikdusan
changed the title
zig cc -mcpu? doesn't match -march
zig cc -mcpu=? is pass-thru to clang driver and lists cpu model names incompatible with zig targets
Oct 20, 2021
zig cannot use "hyphenation" in the cpu name because we allow fine-grained feature flags appended after model name using + or -. eg: -march=x86_64-sse2 disables sse2
Unfortunately, the special case -mcpu=? is pass-thru to clang driver, and clang is listing the cpu models according to its own naming. Ideally, we'd want to intercept, and emit zig's cpu model list, ie. the same output as shown by zig cc -c foo.c -mcpu=bogus
This is a non solution for already existing codebases like meson based build. where is not valid to pass as an option x86_64
Zig Version
0.9.0-dev.1433+4a76523b9
Steps to Reproduce
Any object file will work.
Expected Behavior
The program should compile.
clang
does work with the same arguments.Actual Behavior
The text was updated successfully, but these errors were encountered: