diff options
-rwxr-xr-x | configure | 34 | ||||
-rw-r--r-- | src/common/core.c | 2 | ||||
-rw-r--r-- | src/common/core.h | 2 | ||||
-rw-r--r-- | src/common/showmsg.c | 2 |
4 files changed, 37 insertions, 3 deletions
@@ -1405,6 +1405,28 @@ else fi; # +# debug +# +# Check whether --enable-debug or --disable-debug was given. +if test "${enable_buildbot+set}" = set; then + enableval="$enable_buildbot" + + enable_buildbot="$enableval" + case $enableval in + "no");; + "yes");; + *) { { echo "$as_me:$LINENO: error: invalid argument --enable-buildbot=$enableval... stopping" >&5 +echo "$as_me: error: invalid argument --enable-debug=$enableval... stopping" >&2;} + { (exit 1); exit 1; }; };; + esac + +else + enable_debug="no" + +fi; + + +# # RDTSC as Tick Source # # Check whether --enable-rdtsc or --disable-rdtsc was given. @@ -4469,6 +4491,18 @@ case $enable_debug in ;; esac +# +# Buildbot +# +case $enable_buildbot in + "no") + #default value + ;; + "yes") + CFLAGS="$CFLAGS -g -DBUILDBOT" + ;; +esac + # # RDTSC diff --git a/src/common/core.c b/src/common/core.c index 7a6584898..e05f5a571 100644 --- a/src/common/core.c +++ b/src/common/core.c @@ -29,7 +29,7 @@ void (*shutdown_callback)(void) = NULL; #if defined(BUILDBOT) - bool buildbotflag; + int buildbotflag = 0; #endif int runflag = CORE_ST_RUN; diff --git a/src/common/core.h b/src/common/core.h index 9dff92625..ecaa2a9d0 100644 --- a/src/common/core.h +++ b/src/common/core.h @@ -8,7 +8,7 @@ extern int arg_c; extern char **arg_v; #if defined(BUILDBOT) - extern bool buildbotflag; + extern int buildbotflag; #endif /// @see E_CORE_ST diff --git a/src/common/showmsg.c b/src/common/showmsg.c index 812cbcf68..8492d6db7 100644 --- a/src/common/showmsg.c +++ b/src/common/showmsg.c @@ -694,7 +694,7 @@ int _vShowMessage(enum msg_type flag, const char *string, va_list ap) if( flag == MSG_WARNING || flag == MSG_ERROR || flag == MSG_SQL ) { - buildbotflag = true; + buildbotflag = 1; } #endif if( |