From 0f094cb6c8ccb960af14c44e9a1fd5d4956a7f7f Mon Sep 17 00:00:00 2001 From: squidbus <175574877+squidbus@users.noreply.github.com> Date: Mon, 25 May 2026 09:21:42 -0700 Subject: [PATCH] build: Explicitly turn off AVX512 (#4478) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e9d66d9d0..3f957529a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,7 +58,7 @@ endif() if (ARCHITECTURE STREQUAL "x86_64") # Target x86-64-v3 CPU architecture as this is a good balance between supporting performance critical # instructions like AVX2 and maintaining support for older CPUs. - add_compile_options(-march=x86-64-v3) + add_compile_options(-march=x86-64-v3 -mno-avx512f) endif() if (APPLE AND ARCHITECTURE STREQUAL "x86_64" AND CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64")