From bc4a1b5330e3026c126198ea3ace438e33cced4a Mon Sep 17 00:00:00 2001 From: chausner <15180557+chausner@users.noreply.github.com> Date: Fri, 29 Jul 2022 17:44:53 +0200 Subject: Enable MSVC global optimizations for AES and ChaCha for newer MSVC versions (GH #1131) --- chacha_avx.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'chacha_avx.cpp') diff --git a/chacha_avx.cpp b/chacha_avx.cpp index 8bd8ddc2..1c6c4d2d 100644 --- a/chacha_avx.cpp +++ b/chacha_avx.cpp @@ -36,13 +36,12 @@ extern const char CHACHA_AVX_FNAME[] = __FILE__; # define MAYBE_CONST const #endif -// VS2017 and global optimization bug. TODO, figure out when -// we can re-enable full optimizations for VS2017. Also see +// VS2017 and global optimization bug. Also see // https://github.com/weidai11/cryptopp/issues/649 and // https://github.com/weidai11/cryptopp/issues/735. The // 649 issue affects AES but it is the same here. The 735 // issue is ChaCha AVX2 cut-in where it surfaced again. -#if (_MSC_VER >= 1910) +#if (_MSC_VER >= 1910) && (_MSC_VER < 1916) # ifndef CRYPTOPP_DEBUG # pragma optimize("", off) # pragma optimize("ts", on) -- cgit v1.2.1