From: Konstantinos Margaritis Date: Sun, 8 Oct 2023 21:22:52 +0000 (+0300) Subject: fix defaults for -march for x86 X-Git-Tag: vectorscan/5.4.11~2^2~5^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d5ce27df42af2229f7f169bad0e7de127cc11da;p=thirdparty%2Fvectorscan.git fix defaults for -march for x86 --- diff --git a/cmake/archdetect.cmake b/cmake/archdetect.cmake index 3ffcb282..58258fe5 100644 --- a/cmake/archdetect.cmake +++ b/cmake/archdetect.cmake @@ -44,7 +44,7 @@ if (USE_CPU_NATIVE) endif() elseif (CMAKE_COMPILER_IS_CLANG) if (ARCH_IA32 OR ARCH_X86_64) - set(GNUCC_ARCH native) + set(GNUCC_ARCH x86_64_v2) set(TUNE_FLAG generic) elseif(ARCH_AARCH64) set(GNUCC_ARCH armv8) @@ -60,7 +60,7 @@ if (USE_CPU_NATIVE) endif() else() if (ARCH_IA32 OR ARCH_X86_64) - set(GNUCC_ARCH generic) + set(GNUCC_ARCH native) set(TUNE_FLAG generic) elseif(ARCH_AARCH64) set(GNUCC_ARCH armv8-a)