Skip to content

Commit b1c65a2

Browse files
shriramtersakashters
authored andcommitted
unset intrinsics for arm architecture
1 parent a4f6686 commit b1c65a2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmake/CompilerStuff.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ if(BUILD_ARCH STREQUAL "native")
4848
list(APPEND INTRINSICS_NVCC -Xcompiler\ -mavx512f)
4949
endif(AVX512_FOUND)
5050
else()
51-
set(INTRINSICS "-msse4.1")
51+
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" CMAKE_SYSTEM_PROCESSOR_LOWER)
52+
if(CMAKE_SYSTEM_PROCESSOR_LOWER MATCHES "(aarch64|arm64)")
53+
set(INTRINSICS "")
54+
else()
55+
set(INTRINSICS "-msse4.1")
56+
endif()
5257
endif()
5358

5459
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9.0)

0 commit comments

Comments
 (0)