From 4b04175c5d42bf58cc255e0fbad689b6fe531ef2 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Thu, 6 Jan 2022 23:32:40 +0000 Subject: [PATCH] cryptopp: enable SIMD flags on i386 externals/cryptopp/cryptopp/rijndael_simd.cpp:460:20: error: always_inline function '_mm_loadu_si128' requires target feature 'sse2', but would be inlined into function 'Rijndael_UncheckedSetKey_SSE4_AESNI' that is compiled without support for 'sse2' __m128i temp = _mm_loadu_si128(M128_CAST(userKey+keyLen-16)); ^ externals/cryptopp/cryptopp/rijndael_simd.cpp:469:50: error: '__builtin_ia32_aeskeygenassist128' needs target feature aes rk[keyLen/4] = rk[0] ^ _mm_extract_epi32(_mm_aeskeygenassist_si128(temp, 0), 3) ^ *(rc++); ^ externals/cryptopp/cryptopp/rijndael_simd.cpp:481:20: error: '__builtin_ia32_vec_set_v4si' needs target feature sse4.1 temp = _mm_insert_epi32(temp, rk[11], 3); ^ [...] --- externals/cryptopp/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/externals/cryptopp/CMakeLists.txt b/externals/cryptopp/CMakeLists.txt index 7d53518ee2..b17883d697 100644 --- a/externals/cryptopp/CMakeLists.txt +++ b/externals/cryptopp/CMakeLists.txt @@ -218,6 +218,7 @@ endfunction(DumpMachine) # Thansk to Anonimal for MinGW; see http://github.com/weidai11/cryptopp/issues/466 DumpMachine(CRYPTOPP_AMD64 "(x86_64|AMD64|amd64)") +DumpMachine(CRYPTOPP_I386 "(i.86)") DumpMachine(CRYPTOPP_MINGW64 "(w64-mingw32)|(mingw64)") DumpMachine(CRYPTOPP_ARMV8 "(armv8|aarch64)")