mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
avoid passing -march=native when not supported
Clang does not support -march=native for all targets. Arguably it should always work, but in reality it gives: error: the clang compiler does not support '-march=native' If we move CPU detection logic into Zig itelf, we will not need this, instead we will always pass target features and CPU configuration explicitly. For now, we simply avoid passing the flag when it is known to not be supported.
This commit is contained in:
parent
f8bd1cd3b1
commit
ad438a95c5
3 changed files with 17 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue