1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-07 03:22:57 +03:00

Set up so that configure --with-debug works

This commit is contained in:
David Hall
2016-06-28 16:27:35 -05:00
parent 8082472d5c
commit d8c4f4f1cf
2 changed files with 10 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ struct st_ha_create_information;
#include "functor.h" #include "functor.h"
/** Debug macro */ /** Debug macro */
#if INFINIDB_DEBUG #ifdef INFINIDB_DEBUG
#define IDEBUG(x) {x;} #define IDEBUG(x) {x;}
#else #else
#define IDEBUG(x) {} #define IDEBUG(x) {}

View File

@@ -34,12 +34,20 @@ template <class T> bool isnan(T);
#undef LOG_INFO #undef LOG_INFO
#ifdef _DEBUG #ifdef _DEBUG
#ifndef _MSC_VER
#define SAFE_MUTEX
#define SAFEMALLOC #define SAFEMALLOC
#endif
#define ENABLED_DEBUG_SYNC
#define INFINIDB_DEBUG
#define DBUG_ON 1 #define DBUG_ON 1
#undef DBUG_OFF #undef DBUG_OFF
#else #else
#define DBUG_OFF 1 #undef SAFE_MUTEX
#undef SAFEMALLOC
#undef ENABLED_DEBUG_SYNC
#undef DBUG_ON #undef DBUG_ON
#define DBUG_OFF 1
#endif #endif
#ifdef _MSC_VER #ifdef _MSC_VER
#define MYSQL_DYNAMIC_PLUGIN #define MYSQL_DYNAMIC_PLUGIN