From: Konstantinos Margaritis Date: Wed, 17 Jan 2024 22:43:32 +0000 (+0200) Subject: use arch set in cflags-x86.cmake X-Git-Tag: vectorscan/5.4.12^2~75^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b106c10b4dc74e16174f01817ad3b226058d0a8c;p=thirdparty%2Fvectorscan.git use arch set in cflags-x86.cmake --- diff --git a/cmake/archdetect.cmake b/cmake/archdetect.cmake index b1bd9cc6..9e07e126 100644 --- a/cmake/archdetect.cmake +++ b/cmake/archdetect.cmake @@ -69,7 +69,7 @@ if (USE_CPU_NATIVE) else() if (SIMDE_BACKEND) if (ARCH_IA32 OR ARCH_X86_64) - set(GNUCC_ARCH x86-64-v2) + set(GNUCC_ARCH ${X86_ARCH}) set(TUNE_FLAG generic) elseif(ARCH_AARCH64) set(GNUCC_ARCH armv8-a) @@ -85,7 +85,7 @@ else() set(TUNE_FLAG generic) endif() elseif (ARCH_IA32 OR ARCH_X86_64) - set(GNUCC_ARCH x86-64-v2) + set(GNUCC_ARCH ${X86_ARCH}) set(TUNE_FLAG generic) elseif(ARCH_AARCH64) if (BUILD_SVE2_BITPERM)