mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-08 14:18:27 +00:00
Pickup Android NDK_DEBUG=1 for Debug builds
This commit is contained in:
parent
6b4887b6f4
commit
b28d2d4a7e
@ -72,9 +72,12 @@
|
||||
// raises a SIGTRAP (Unix) or calls DebugBreak() (Windows). CRYPTOPP_ASSERT
|
||||
// is only in effect when CRYPTOPP_DEBUG, DEBUG or _DEBUG is defined. Unlike
|
||||
// Posix assert, CRYPTOPP_ASSERT is not affected by NDEBUG (or failure to
|
||||
// define it).
|
||||
// Also see http://github.com/weidai11/cryptopp/issues/277, CVE-2016-7420
|
||||
#if (defined(DEBUG) || defined(_DEBUG)) && !defined(CRYPTOPP_DEBUG)
|
||||
// define it). According to the ndk-build docs, Android use NDK_DEBUG=1 to
|
||||
// signal a DEBUG build (and NDK_DEBUG=0 to signal non-DEBUG build).
|
||||
// Also see http://github.com/weidai11/cryptopp/issues/277, CVE-2016-7420 and
|
||||
// https://developer.android.com/ndk/guides/ndk-build
|
||||
#if (defined(DEBUG) || defined(_DEBUG)) || (defined(NDK_DEBUG) && (NDK_DEBUG > 0))
|
||||
# undef CRYPTOPP_DEBUG
|
||||
# define CRYPTOPP_DEBUG 1
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user