Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore](build) add build param to version string #12591

Merged
merged 1 commit into from
Sep 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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