We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a280e4 commit ab60e96Copy full SHA for ab60e96
1 file changed
cpp/cmake_modules/SetupCxxFlags.cmake
@@ -74,7 +74,12 @@ if(ARROW_CPU_FLAG STREQUAL "x86")
74
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
75
# Check for AVX extensions on 64-bit systems only, as 32-bit support seems iffy
76
list(JOIN ARROW_AVX2_FLAGS " " ARROW_AVX2_FLAGS_COMMAND_LINE)
77
- check_cxx_compiler_flag("${ARROW_AVX2_FLAGS_COMMAND_LINE}" CXX_SUPPORTS_AVX2)
+ 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()
83
if(MINGW)
84
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65782
85
message(STATUS "Disable AVX512 support on MINGW for now")
0 commit comments