From 4636f2a6870dc7b74ce16854c32d51fc976436a9 Mon Sep 17 00:00:00 2001 From: loctormor Date: Thu, 16 Jul 2026 16:49:48 -0400 Subject: [PATCH] Remove ARROW_SSE4_2_FLAG for x86 MSVC The SSE4.2 flag is invalid in for the MSVC x86 compiler. https://learn.microsoft.com/en-us/cpp/build/reference/arch-x86 --- cpp/cmake_modules/SetupCxxFlags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/cmake_modules/SetupCxxFlags.cmake b/cpp/cmake_modules/SetupCxxFlags.cmake index 21341167fe9..11e616cb094 100644 --- a/cpp/cmake_modules/SetupCxxFlags.cmake +++ b/cpp/cmake_modules/SetupCxxFlags.cmake @@ -49,7 +49,7 @@ endif() if(ARROW_CPU_FLAG STREQUAL "x86") # x86/amd64 compiler flags, msvc/gcc/clang if(MSVC) - set(ARROW_SSE4_2_FLAG "/arch:SSE4.2") + set(ARROW_SSE4_2_FLAG "") # These definitions are needed for xsimd to consider the corresponding instruction # sets available, but they are not set by MSVC (unlike other compilers). # See https://github.com/AcademySoftwareFoundation/OpenImageIO/issues/4265