emkornfield commented on a change in pull request #6985:
URL: https://github.com/apache/arrow/pull/6985#discussion_r413575153



##########
File path: cpp/cmake_modules/SetupCxxFlags.cmake
##########
@@ -40,12 +40,13 @@ if(ARROW_CPU_FLAG STREQUAL "x86")
     set(CXX_SUPPORTS_SSE4_2 TRUE)
   else()
     set(ARROW_SSE4_2_FLAG "-msse4.2")
-    set(ARROW_AVX2_FLAG "-mavx2")
+    set(ARROW_AVX2_FLAG "-march=core-avx2")

Review comment:
       hopefully this is acceptable change.  I'm open to other suggestions on 
how to enable bmi2 (not for some reason using "-mbmi2 -mavx2" didn't seem to 
work for me, but I can try again.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to