From 35acf49d5f0aa8527fb8d4a67d4ba5946a5db6f5 Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Sun, 19 Nov 2023 10:24:13 +0200 Subject: [PATCH] Don't build fat runtime with native CPU detection --- cmake/osdetection.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/osdetection.cmake b/cmake/osdetection.cmake index f96a42f3..235487a9 100644 --- a/cmake/osdetection.cmake +++ b/cmake/osdetection.cmake @@ -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")