SIGN IN SIGN UP

ggml-cpu: detect correct cpu flags for arm64 (#16229) (#16239)

When using GCC 9 and GCC 12 on the arm64 platform of ubuntu 2004,
the command "gcc -mcpu=native -E -v -" fails to detect the correct CPU flags,
which results in compilation failures for certain extended instructions,
but the correct CPU flags can be obtained by using gcc -march.

Signed-off-by: lizhenneng <lizhenneng@kylinos.cn>
Co-authored-by: lizhenneng <lizhenneng@kylinos.cn>
I
iron committed
7c23f3f0d4b9f5d6ea140756eb694b562d5acebb
Parent: 8c0d6bb
Committed by GitHub <noreply@github.com> on 11/7/2025, 4:18:14 PM