From 4fea4d917b8e6e2534feded33a78eb67e16b0d7a Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 27 Feb 2017 16:34:41 +0100 Subject: [PATCH] With MSVC, AVX2 cause ICEs on x86 targets --- src/libsodium/include/sodium/private/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsodium/include/sodium/private/common.h b/src/libsodium/include/sodium/private/common.h index c0c01142..d002b314 100644 --- a/src/libsodium/include/sodium/private/common.h +++ b/src/libsodium/include/sodium/private/common.h @@ -203,7 +203,7 @@ store32_be(uint8_t dst[4], uint32_t w) # if _MSC_VER >= 1600 # define HAVE_WMMINTRIN_H 1 # endif -# if _MSC_VER >= 1700 +# if _MSC_VER >= 1700 && defined(_M_X64) # define HAVE_AVX2INTRIN_H 1 # endif #endif