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

zykkk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new f70643d236c [fix](cmake) Fix be cmake coverage linker flag (#30386)
f70643d236c is described below

commit f70643d236cd013952573c9288416da2cf285e82
Author: Jack Drogon <jack.xsuper...@gmail.com>
AuthorDate: Sat Jan 27 13:28:19 2024 +0800

    [fix](cmake) Fix be cmake coverage linker flag (#30386)
---
 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: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to