From a67aa3f5242f86668a92509b1e4bc1fdea032462 Mon Sep 17 00:00:00 2001 From: Sergey Kroshnin Date: Fri, 22 Feb 2019 23:51:02 +0300 Subject: [PATCH] Use optimized Argon2 source for all x86_64 builds (#1762) Minimum requirements for opt.c is SSE2 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3918bd2d..a9eef461 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -223,7 +223,7 @@ add_library (cryptopp crypto/cryptopp/sse_simd.cpp ${CRYPTOPP_EXTRA}) -if ((NANO_SIMD_OPTIMIZATIONS OR RAIBLOCKS_SIMD_OPTIMIZATIONS) AND NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64") +if (WIN32 OR CMAKE_SYSTEM_PROCESSOR MATCHES "^(i.86|x86(_64)?)$") set (ARGON_CORE crypto/phc-winner-argon2/src/opt.c) else () set (ARGON_CORE crypto/phc-winner-argon2/src/ref.c)