summaryrefslogtreecommitdiff
path: root/chacha_avx.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-12-03 04:18:41 -0500
committerJeffrey Walton <noloader@gmail.com>2018-12-03 04:18:41 -0500
commit318d53f6f999a1c678aa07d7fe0ae7720da9be1d (patch)
treed9a4969a50c3881dfb7c654edc785ba253b3d9c6 /chacha_avx.cpp
parent774454ba7c9da45759ff40e584f5aed9ba3fcb9a (diff)
downloadcryptopp-git-318d53f6f999a1c678aa07d7fe0ae7720da9be1d.tar.gz
Avoid use of NDEBUG in source files
Posix NDEBUG causes our test script to fail the Posix Assert test
Diffstat (limited to 'chacha_avx.cpp')
-rw-r--r--chacha_avx.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/chacha_avx.cpp b/chacha_avx.cpp
index 087c7a1e..f9565304 100644
--- a/chacha_avx.cpp
+++ b/chacha_avx.cpp
@@ -42,9 +42,11 @@ extern const char CHACHA_AVX_FNAME[] = __FILE__;
// 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) && defined(NDEBUG)
-# pragma optimize("", off)
-# pragma optimize("ts", on)
+#if (_MSC_VER >= 1910)
+# ifndef CRYPTOPP_DEBUG
+# pragma optimize("", off)
+# pragma optimize("ts", on)
+# endif
#endif
ANONYMOUS_NAMESPACE_BEGIN