If -march= is already specified via CMAKE_C_FLAGS/CMAKE_CXX_FLAGS or ARCH_FLAGS, do not append -march=native again. This prevents compiler warnings about redundant flags and allows users to override the march target by setting it in their build environment. Fixes duplicate -march flag in ggml-cpu and ggml-amx backends. |
||
|---|---|---|
| .. | ||
| cmake | ||
| include | ||
| src | ||
| .gitignore | ||
| CMakeLists.txt | ||