From 1b0a3700c569a0f13a4664a8d5415ffe4d29eb72 Mon Sep 17 00:00:00 2001 From: tevador Date: Fri, 28 Jun 2019 19:41:58 +0200 Subject: [PATCH] Fix Windows build --- CMakeLists.txt | 4 ++-- src/intrin_portable.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a1f8570..9af9741 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/intrin_portable.h b/src/intrin_portable.h index c74eae2..b4f1b50 100644 --- a/src/intrin_portable.h +++ b/src/intrin_portable.h @@ -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 + FORCE_INLINE rx_vec_i128 rx_aesenc_vec_i128(rx_vec_i128 v, rx_vec_i128 rkey) { throw std::runtime_error(platformError); }