Commit 24215461 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#3269 define TOKUDB_REVISION in CPPFLAGS refs[t:3269]

git-svn-id: file:///svn/toku/tokudb@28217 c7de825b-a66e-492c-adef-691d508d4ae1
parent f275c656
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#if defined(TOKUDB_REVISION) #if defined(TOKUDB_REVISION)
#define BUILD_ID TOKUDB_REVISION #define BUILD_ID TOKUDB_REVISION
#else #else
#define BUILD_ID 1000 #error
#endif #endif
#include "brt_layout_version.h" #include "brt_layout_version.h"
......
...@@ -12,10 +12,6 @@ DEPEND_COMPILE += \ ...@@ -12,10 +12,6 @@ DEPEND_COMPILE += \
include $(TOKUROOT)toku_include/Makefile.include include $(TOKUROOT)toku_include/Makefile.include
CPPFLAGS+=-D_GNU_SOURCE -D_THREAD_SAFE CPPFLAGS+=-D_GNU_SOURCE -D_THREAD_SAFE
ifneq ($(TOKUDB_REVISION),)
CPPFLAGS += -DTOKUDB_REVISION=$(TOKUDB_REVISION)
endif
YDB=ydb.$(AEXT) YDB=ydb.$(AEXT)
YDB_BUNDLE=ydb.bundle YDB_BUNDLE=ydb.bundle
TYDB=tydb.$(AEXT) TYDB=tydb.$(AEXT)
......
...@@ -5964,7 +5964,7 @@ db_version(int *major, int *minor, int *patch) { ...@@ -5964,7 +5964,7 @@ db_version(int *major, int *minor, int *patch) {
#define str(X) #X #define str(X) #X
return "tokudb " xstr(DB_VERSION_MAJOR) "." xstr(DB_VERSION_MINOR) "." xstr(DB_VERSION_PATCH) " build " xstr(TOKUDB_REVISION); return "tokudb " xstr(DB_VERSION_MAJOR) "." xstr(DB_VERSION_MINOR) "." xstr(DB_VERSION_PATCH) " build " xstr(TOKUDB_REVISION);
#else #else
return DB_VERSION_STRING; #error
#endif #endif
} }
......
...@@ -86,6 +86,11 @@ ifeq ($(SYSTEM),sunos) ...@@ -86,6 +86,11 @@ ifeq ($(SYSTEM),sunos)
CPPFLAGS += -DTOKU_ALLOW_DEPRECATED CPPFLAGS += -DTOKU_ALLOW_DEPRECATED
endif endif
ifeq ($(TOKUDB_REVISION),)
TOKUDB_REVISION = 0
endif
CPPFLAGS += -DTOKUDB_REVISION=$(TOKUDB_REVISION)
#CFLAG default options #CFLAG default options
# Add -Wconversion #DISABLED for now. # Add -Wconversion #DISABLED for now.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment