Skip to content

Commit ab60e96

Browse files
committed
Disable AVX2
1 parent 3a280e4 commit ab60e96

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

cpp/cmake_modules/SetupCxxFlags.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,12 @@ if(ARROW_CPU_FLAG STREQUAL "x86")
7474
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
7575
# Check for AVX extensions on 64-bit systems only, as 32-bit support seems iffy
7676
list(JOIN ARROW_AVX2_FLAGS " " ARROW_AVX2_FLAGS_COMMAND_LINE)
77-
check_cxx_compiler_flag("${ARROW_AVX2_FLAGS_COMMAND_LINE}" CXX_SUPPORTS_AVX2)
77+
if(MINGW AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
78+
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54412
79+
message(STATUS "Disable AVX2 support on gcc / MINGW for now")
80+
else()
81+
check_cxx_compiler_flag("${ARROW_AVX2_FLAGS_COMMAND_LINE}" CXX_SUPPORTS_AVX2)
82+
endif()
7883
if(MINGW)
7984
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65782
8085
message(STATUS "Disable AVX512 support on MINGW for now")

0 commit comments

Comments
 (0)