Disable debug checks in release builds

merge-mining
SChernykh 2024-06-11 20:33:20 +02:00
parent 5e8da4e672
commit ff7d92c731
2 changed files with 2 additions and 4 deletions

View File

@ -92,8 +92,7 @@
#define __has_feature(x) 0 #define __has_feature(x) 0
#endif #endif
// TODO set it to 0 before release #if defined(_DEBUG) || defined(__SANITIZE_ADDRESS__) || __has_feature(address_sanitizer) || defined(__SANITIZE_THREAD__) || __has_feature(thread_sanitizer)
#if 1//defined(_DEBUG) || defined(__SANITIZE_ADDRESS__) || __has_feature(address_sanitizer) || defined(__SANITIZE_THREAD__) || __has_feature(thread_sanitizer)
#define P2POOL_DEBUGGING 1 #define P2POOL_DEBUGGING 1
#endif #endif

View File

@ -23,8 +23,7 @@
#ifdef _DEBUG #ifdef _DEBUG
#define POOL_BLOCK_DEBUG 1 #define POOL_BLOCK_DEBUG 1
#else #else
// TODO set it to 0 before release #define POOL_BLOCK_DEBUG 0
#define POOL_BLOCK_DEBUG 1
#endif #endif
namespace p2pool { namespace p2pool {