mirror of
https://github.com/wownero/RandomX.git
synced 2026-10-20 08:48:45 +02:00
Fix Windows build
This commit is contained in:
+2
-2
@@ -56,11 +56,11 @@ if(NOT ARCH_ID)
|
||||
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "")
|
||||
set(CMAKE_SYSTEM_PROCESSOR ${CMAKE_HOST_SYSTEM_PROCESSOR})
|
||||
endif()
|
||||
set(ARCH_ID "${CMAKE_SYSTEM_PROCESSOR}")
|
||||
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" ARCH_ID)
|
||||
endif()
|
||||
|
||||
if(NOT ARM_ID)
|
||||
string(TOLOWER "${ARCH_ID}" ARM_ID)
|
||||
set(ARM_ID "${ARCH_ID}")
|
||||
endif()
|
||||
|
||||
if(NOT ARCH)
|
||||
|
||||
@@ -587,6 +587,8 @@ void rx_set_rounding_mode(uint32_t mode);
|
||||
#ifndef HAVE_AES
|
||||
static const char* platformError = "Platform doesn't support hardware AES";
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
FORCE_INLINE rx_vec_i128 rx_aesenc_vec_i128(rx_vec_i128 v, rx_vec_i128 rkey) {
|
||||
throw std::runtime_error(platformError);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user