]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
Don't build fat runtime with native CPU detection
authorKonstantinos Margaritis <markos@freevec.org>
Sun, 19 Nov 2023 08:24:13 +0000 (10:24 +0200)
committerKonstantinos Margaritis <markos@freevec.org>
Sun, 19 Nov 2023 08:24:13 +0000 (10:24 +0200)
cmake/osdetection.cmake

index f96a42f3a9bb8d1846905ccadcaa30c2203eb7dc..235487a9923bd0820b1e714697523812ea2ee1d7 100644 (file)
@@ -11,7 +11,11 @@ message("Checking Fat Runtime Requirements...")
 if (FAT_RUNTIME AND NOT LINUX)
     message(FATAL_ERROR "Fat runtime is only supported on Linux OS")
 endif()
-    
+
+if (USE_CPU_NATIVE AND FAT_RUNTIME)
+    message(FATAL_ERROR "Fat runtime is not compatible with Native CPU detection")
+endif()
+
 if (FAT_RUNTIME AND LINUX)
     if (NOT (ARCH_IA32 OR ARCH_X86_64 OR ARCH_AARCH64))
         message(FATAL_ERROR "Fat runtime is only supported on Intel and Aarch64 architectures")