#1012 Fixed _rotr detection.

This commit is contained in:
XMRig
2019-04-16 02:00:27 +07:00
parent 3d2c9f226d
commit 6300fd5e8b

View File

@@ -75,6 +75,9 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES Clang)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maes")
check_symbol_exists("_rotr" "x86intrin.h" HAVE_ROTR)
if (HAVE_ROTR)
add_definitions(/DHAVE_ROTR)
endif()
endif()
endif()