diff --git a/src/benchCommandOpt.c b/src/benchCommandOpt.c index fa2fd435..a2e87f43 100644 --- a/src/benchCommandOpt.c +++ b/src/benchCommandOpt.c @@ -29,9 +29,6 @@ extern char g_configDir[MAX_PATH_LEN]; #endif -// libtaos.so -extern char buildinfo[]; - char *g_aggreFuncDemo[] = {"*", "count(*)", "avg(current)", @@ -50,9 +47,7 @@ void printVersion() { // version printf("taosBenchmark version: %s\ngit: %s\n", taosBenchmark_ver, taosBenchmark_commit); -#ifdef LINUX - printf("build: %s\n", buildinfo); -#endif + printf("build: %s\n", getBuildInfo()); if (strlen(taosBenchmark_status) > 0) { printf("status: %s\n", taosBenchmark_status); } diff --git a/src/taosdump.c b/src/taosdump.c index 6364da78..7674793a 100644 --- a/src/taosdump.c +++ b/src/taosdump.c @@ -656,8 +656,6 @@ static uint64_t getUniqueIDFromEpoch() { return id; } -// libtaos.so -extern char buildinfo[]; static void printVersion(FILE *file) { char taostools_longver[] = TAOSDUMP_TAG; @@ -670,9 +668,9 @@ static void printVersion(FILE *file) { char taosdump_commit[] = TAOSDUMP_COMMIT_SHA1; fprintf(file,"taosdump version: %s\ngit: %s\n", taostools_ver, taosdump_commit); -#ifdef LINUX - printf("build: %s\n", buildinfo); -#endif + + printf("build: %s\n", getBuildInfo()); + if (strlen(taosdump_status) > 0) { fprintf(file, "status:%s\n", taosdump_status); }