]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
fix defaults for -march for x86
authorKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Sun, 8 Oct 2023 21:22:52 +0000 (00:22 +0300)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Sun, 8 Oct 2023 21:22:52 +0000 (00:22 +0300)
cmake/archdetect.cmake

index 3ffcb2825bf01c00a2f9e7474e862e3191d9a6ca..58258fe50958a5eda67c7424d542dce552dc96c1 100644 (file)
@@ -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)