-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 does not accept -mtune=generic #12767
Comments
This was already proposed in #4911 |
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". Please reopen |
Clang does accept |
Oh, you're right. Targets accepted by zig clang but not zig cc are: Neither accepts x86-64-v2, x86-64-v3, x86-64-v4 So is this included in #4911, after all? |
Sounds like it but feel free to mention it there too. |
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: