Fixed clang build.

This commit is contained in:
XMRig 2021-08-29 18:52:11 +07:00
parent fd3dad920d
commit cd7c7902a9
No known key found for this signature in database
GPG key ID: 446A53638BE94409
2 changed files with 5 additions and 7 deletions

View file

@ -24,6 +24,11 @@ if (WITH_ASTROBWT)
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
add_definitions(/DASTROBWT_AVX2)
list(APPEND SOURCES_CRYPTO src/crypto/astrobwt/xmm6int/salsa20_xmm6int-avx2.c)
if (CMAKE_C_COMPILER_ID MATCHES GNU OR CMAKE_C_COMPILER_ID MATCHES Clang)
set_source_files_properties(src/crypto/astrobwt/xmm6int/salsa20_xmm6int-avx2.c PROPERTIES COMPILE_FLAGS -mavx2)
endif()
if (CMAKE_C_COMPILER_ID MATCHES MSVC)
enable_language(ASM_MASM)
list(APPEND SOURCES_CRYPTO src/crypto/astrobwt/sha3_256_avx2.asm)