Force NDEBUG in sqlite, RocksDB, and HyperLevelDB by default

This commit is contained in:
JoelKatz
2013-11-26 13:34:40 -08:00
committed by Vinnie Falco
parent c124ad0dcd
commit 858c3a5362
3 changed files with 17 additions and 0 deletions

View File

@@ -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

View File

@@ -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"

View File

@@ -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"