configure: Prevent unsupported march=native on clang-14 aarch64.

This commit is contained in:
Jason Volk 2023-04-05 22:44:39 -07:00
parent 922db35dd5
commit 193d87ef76
1 changed files with 12 additions and 0 deletions

View File

@ -801,6 +801,18 @@ MACHINE_FLAGS=""
dnl Initial machine
machine_arch="native"
machine_tune="native"
AM_COND_IF([CLANG],
[
AS_IF([test "$CXX_EPOCH" -lt "15"],
[
AS_IF([test "$host_cpu" = "aarch64"],
[
machine_arch=""
])
])
])
AM_COND_IF([GENERIC],
[
machine_tune="generic"