2020-11-26 06:06:59 +08:00
|
|
|
#cmakedefine ALLOC_INSTRUMENTATION
|
|
|
|
#cmakedefine NDEBUG
|
|
|
|
#cmakedefine FDB_RELEASE
|
|
|
|
#ifdef FDB_RELEASE
|
|
|
|
# define FDB_CLEAN_BUILD
|
|
|
|
#endif // FDB_RELEASE
|
|
|
|
#cmakedefine OPEN_FOR_IDE
|
|
|
|
#ifdef WIN32
|
|
|
|
# define _WIN32_WINNT ${WINDOWS_TARGET}
|
|
|
|
# define WINVER ${WINDOWS_TARGET}
|
|
|
|
# define NTDDI_VERSION 0x05020000
|
|
|
|
# define BOOST_ALL_NO_LIB
|
|
|
|
#else
|
|
|
|
# cmakedefine USE_ASAN
|
|
|
|
# cmakedefine USE_MSAN
|
|
|
|
# cmakedefine USE_UBSAN
|
2020-12-11 10:08:02 +08:00
|
|
|
# cmakedefine USE_TSAN
|
2020-11-26 06:06:59 +08:00
|
|
|
# if defined(USE_ASAN) || \
|
|
|
|
defined(USE_MSAN) || \
|
|
|
|
defined(USE_UBSAN) || \
|
|
|
|
defined(USE_TSAN)
|
2020-12-11 10:08:02 +08:00
|
|
|
# define USE_SANITIZER
|
2020-11-26 06:06:59 +08:00
|
|
|
# endif
|
|
|
|
# cmakedefine USE_GCOV
|
|
|
|
# cmakedefine USE_VALGRIND
|
|
|
|
# ifdef USE_VALGRIND
|
|
|
|
# define VALGRIND 1
|
|
|
|
# endif
|
|
|
|
# cmakedefine DTRACE_PROBES
|
|
|
|
# cmakedefine HAS_ALIGNED_ALLOC
|
|
|
|
#endif // WIN32
|