mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +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>
|
#define BEAST_ZLIB_INCLUDE_PATH <zlib.h>
|
||||||
#endif
|
#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
|
// Boost
|
||||||
|
|||||||
@@ -43,6 +43,11 @@
|
|||||||
# pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
# pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||||
#endif
|
#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/builder.cc"
|
||||||
#include "rocksdb/db/db_filesnapshot.cc"
|
#include "rocksdb/db/db_filesnapshot.cc"
|
||||||
#include "rocksdb/db/dbformat.cc"
|
#include "rocksdb/db/dbformat.cc"
|
||||||
|
|||||||
@@ -51,6 +51,11 @@
|
|||||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||||
#endif
|
#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/builder.cc"
|
||||||
#include "hyperleveldb/db/db_impl.cc"
|
#include "hyperleveldb/db/db_impl.cc"
|
||||||
#include "hyperleveldb/db/db_iter.cc"
|
#include "hyperleveldb/db/db_iter.cc"
|
||||||
|
|||||||
Reference in New Issue
Block a user