This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch dev-1.0.1
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git

commit 6e6ba618b1d11c595808cf1ad1412aaf894137be
Author: dataroaring <98214048+dataroar...@users.noreply.github.com>
AuthorDate: Mon Mar 28 10:21:55 2022 +0800

    [chore] add -rtlib=compiler-rt for UBSAN under clang (#8647)
---
 be/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/CMakeLists.txt b/be/CMakeLists.txt
index 691ca26..ebd9542 100644
--- a/be/CMakeLists.txt
+++ b/be/CMakeLists.txt
@@ -628,7 +628,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
     set(UBSAN_LIBS -static-libubsan tcmalloc)
     set(TSAN_LIBS -static-libtsan)
 else ()
-    set(UBSAN_LIBS tcmalloc)
+    set(UBSAN_LIBS -rtlib=compiler-rt tcmalloc)
 endif ()
 
 # Add sanitize static link flags or tcmalloc

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to