This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch branch-1.1-lts in repository https://gitbox.apache.org/repos/asf/doris.git
commit 39ca45cbe9b6e3c47f3a416de4afba16944538ee Author: Zhengguo Yang <[email protected]> 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 782effadc2..28985b1d53 100644 --- a/be/CMakeLists.txt +++ b/be/CMakeLists.txt @@ -364,7 +364,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: [email protected] For additional commands, e-mail: [email protected]
