Unverified Commit b4b4181a authored by siddontang's avatar siddontang Committed by GitHub

fix building on ARM64 (#23)

Signed-off-by: 's avatarsiddontang <siddontang@gmail.com>
parent 4114060a
......@@ -97,7 +97,7 @@ else()
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:AVX2")
else()
if(NOT HAVE_POWER8)
if(NOT HAVE_POWER8 AND NOT HAS_ARMV8_CRC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
endif()
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment