mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-03 17:35:51 +00:00
Force NDEBUG in sqlite, RocksDB, and HyperLevelDB by default
This commit is contained in:
@@ -107,6 +107,13 @@
|
||||
#define BEAST_ZLIB_INCLUDE_PATH <zlib.h>
|
||||
#endif
|
||||
|
||||
/** Config: BEAST_SQLITE_FORCE_NDEBUG
|
||||
Setting this option forces sqlite into release mode even if NDEBUG is not set
|
||||
*/
|
||||
#ifndef BEAST_SQLITE_FORCE_NDEBUG
|
||||
#define BEAST_SQLITE_FORCE_NDEBUG 1
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
//
|
||||
// Boost
|
||||
|
||||
@@ -43,6 +43,11 @@
|
||||
# pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
|
||||
// Compile RocksDB without debugging unless specifically requested
|
||||
#if !defined (NDEBUG) && !defined (RIPPLE_DEBUG_ROCKSDB)
|
||||
#define NDEBUG
|
||||
#endif
|
||||
|
||||
#include "rocksdb/db/builder.cc"
|
||||
#include "rocksdb/db/db_filesnapshot.cc"
|
||||
#include "rocksdb/db/dbformat.cc"
|
||||
|
||||
@@ -51,6 +51,11 @@
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
|
||||
// Compile HyperLevelDB without debugging unless specifically requested
|
||||
#if !defined (NDEBUG) && !defined (RIPPLE_DEBUG_HYPERLEVELDB)
|
||||
#define NDEBUG
|
||||
#endif
|
||||
|
||||
#include "hyperleveldb/db/builder.cc"
|
||||
#include "hyperleveldb/db/db_impl.cc"
|
||||
#include "hyperleveldb/db/db_iter.cc"
|
||||
|
||||
Reference in New Issue
Block a user