This is an automated email from the ASF dual-hosted git repository. cambyzju pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new c6c84a2784 [chore](build) add build param to version string (#12591) c6c84a2784 is described below commit c6c84a278459b05ddeabb714d647b12416f1faa1 Author: Zhengguo Yang <yangz...@gmail.com> AuthorDate: Thu Sep 15 17:09:22 2022 +0800 [chore](build) add build param to version string (#12591) --- be/CMakeLists.txt | 2 +- be/src/util/debug_util.cpp | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/be/CMakeLists.txt b/be/CMakeLists.txt index 9c610e1f2c..2fc57ecf3c 100644 --- a/be/CMakeLists.txt +++ b/be/CMakeLists.txt @@ -410,7 +410,7 @@ check_function_exists(sched_getcpu HAVE_SCHED_GETCPU) # -pthread: enable multithreaded malloc # -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG: enable nanosecond precision for boost # -fno-omit-frame-pointers: Keep frame pointer for functions in register -set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -Wall -Wno-sign-compare -pthread -Werror") +set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -frecord-gcc-switches -Wall -Wno-sign-compare -pthread -Werror") set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -fstrict-aliasing -fno-omit-frame-pointer") set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -std=gnu++17 -D__STDC_FORMAT_MACROS") set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG") diff --git a/be/src/util/debug_util.cpp b/be/src/util/debug_util.cpp index 854d40f0ba..a917d6f6ab 100644 --- a/be/src/util/debug_util.cpp +++ b/be/src/util/debug_util.cpp @@ -59,6 +59,19 @@ std::string get_build_version(bool compact) { << " RELEASE" #else << " DEBUG" +#if defined(ADDRESS_SANITIZER) + << " with ASAN" +#elif defined(LEAK_SANITIZER) + << " with LSAN" +#elif defined(THREAD_SANITIZER) + << " with TSAN" +#elif defined(UNDEFINED_BEHAVIOR_SANITIZER) + << " with UBSAN" +#elif defined(MEMORY_SANITIZER) + << " with MSAN" +#elif defined(BLACKLIST_SANITIZER) + << " with BLSAN" +#endif #endif << " (build " << DORIS_BUILD_HASH << ")"; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org