fixes #1844, if arm, do not use SSE

This commit is contained in:
Dusan Klinec 2020-09-30 20:05:45 +02:00
parent f1ec8a18f6
commit fc81dfcb6d
No known key found for this signature in database
GPG key ID: 6337E118CCBCE103

View file

@ -65,7 +65,7 @@ if (WITH_RANDOMX)
set_property(SOURCE src/crypto/randomx/jit_compiler_a64_static.S PROPERTY LANGUAGE C)
endif()
if (CMAKE_C_COMPILER_ID MATCHES GNU OR CMAKE_C_COMPILER_ID MATCHES Clang)
if (NOT ARM_TARGET AND (CMAKE_C_COMPILER_ID MATCHES GNU OR CMAKE_C_COMPILER_ID MATCHES Clang))
set_source_files_properties(src/crypto/randomx/blake2/blake2b_sse41.c PROPERTIES COMPILE_FLAGS -msse4.1)
endif()