From 14548dba9ade15913f30cfecb09038103366582f Mon Sep 17 00:00:00 2001 From: kenlig <28685375+kenlig@users.noreply.github.com> Date: Mon, 28 Oct 2024 03:04:20 +0800 Subject: [PATCH] update --- daemon/CMakeLists.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt index a6e89870..de7f4644 100644 --- a/daemon/CMakeLists.txt +++ b/daemon/CMakeLists.txt @@ -12,9 +12,9 @@ set(PLACEHOLDER_INPUT ${CMAKE_CURRENT_SOURCE_DIR}/assets/placeholder) set(PLACEHOLDER_OUTPUT placeholder.c) add_custom_command( - OUTPUT placeholder.c - COMMAND embedfile placeholder ${PLACEHOLDER_INPUT} ${PLACEHOLDER_OUTPUT} - DEPENDS ${PLACEHOLDER_INPUT}) + OUTPUT placeholder.c + COMMAND embedfile placeholder ${PLACEHOLDER_INPUT} ${PLACEHOLDER_OUTPUT} + DEPENDS ${PLACEHOLDER_INPUT}) add_library(libbpftime_daemon STATIC user/bpf_tracer.cpp @@ -63,3 +63,8 @@ install(TARGETS bpftime_daemon CONFIGURATIONS Release Debug RelWithDebInfo DESTI if(BPFTIME_ENABLE_UNIT_TESTING) add_subdirectory(test) endif() + +if(${TEST_LCOV}) + target_compile_options(bpftime_daemon PUBLIC -fprofile-arcs -ftest-coverage -fprofile-update=atomic) + target_link_options(bpftime_daemon PUBLIC -fprofile-arcs) +endif()