Skip to content

Commit

Permalink
[chore](build) add build param to version string (apache#12591)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzhg authored Sep 15, 2022
1 parent 858e823 commit c6c84a2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion be/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
13 changes: 13 additions & 0 deletions be/src/util/debug_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 << ")";

Expand Down

0 comments on commit c6c84a2

Please sign in to comment.