This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new a707ac65ec9 Fix be cmake coverage linker flag (#30387)
a707ac65ec9 is described below
commit a707ac65ec94170efcc6f1bed599a4fbcc447cd7
Author: Jack Drogon <[email protected]>
AuthorDate: Thu Jan 25 21:06:53 2024 +0800
Fix be cmake coverage linker flag (#30387)
Signed-off-by: Jack Drogon <[email protected]>
---
be/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/be/CMakeLists.txt b/be/CMakeLists.txt
index ba1d94f6b60..cbf0cd2e449 100644
--- a/be/CMakeLists.txt
+++ b/be/CMakeLists.txt
@@ -660,6 +660,7 @@ set(BUILD_SHARED_LIBS OFF)
option(ENABLE_CLANG_COVERAGE "coverage option" OFF)
if (ENABLE_CLANG_COVERAGE AND ENABLE_CLANG_COVERAGE STREQUAL ON AND
COMPILER_CLANG)
add_compile_options(-fprofile-instr-generate -fcoverage-mapping
-DLLVM_PROFILE)
+ add_link_options(-fprofile-instr-generate)
endif ()
if (MAKE_TEST)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]