1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-07 07:55:04 -05:00

fies #1844, adds WITH_SSE cmake option

now it is possible to disable sse for Blake2, which is not supported on ARMs
This commit is contained in:
Dusan Klinec
2020-09-30 19:58:10 +02:00
parent f1ec8a18f6
commit 5a7bcb2d03
3 changed files with 3 additions and 1 deletions

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 WITH_SSE 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()