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
This option is frequently passed by some makefiles and build scripts and is frequently the only thing preventing zig cc from being an otherwise drop-in replacement. It should be safe to just ignore it.
Expected Behavior
Accept this gcc-ism
Actual Behavior
error: unknown target CPU 'generic'
The text was updated successfully, but these errors were encountered:
orent
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Sep 7, 2022
This is not the same as #4911 which makes no mention of 'generic'
This proposal is specifically about value 'generic' which exists in gcc but not in llvm. It means a "a fairly old but not really ancient CPU target we will update from time".
Oh, you're right.
"zig cc" does not accept it, but "zig clang" does
Targets accepted by zig clang but not zig cc are:
generic
goldmont-plus
core-avx-i
core-avx2
skylake-avx512
icelake-client
icelake-server
athlon-fx
x86-64
Zig Version
0.9.1
Steps to Reproduce
Compile c code with -mtune=generic
This option is frequently passed by some makefiles and build scripts and is frequently the only thing preventing zig cc from being an otherwise drop-in replacement. It should be safe to just ignore it.
Expected Behavior
Accept this gcc-ism
Actual Behavior
error: unknown target CPU 'generic'
The text was updated successfully, but these errors were encountered: