Skip to content

Commit

Permalink
perf: set relationship of coverage generation based on llvm-cov
Browse files Browse the repository at this point in the history
  • Loading branch information
msclock committed Mar 15, 2024
1 parent 4e5ea2f commit 6149608
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/test/Coverage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ function(add_code_coverage_all_targets)
-instr-profile=${CMAKE_COVERAGE_OUTPUT_DIRECTORY}/all-merged.profdata
-format="text" ${_exclude_regex} >
${CMAKE_COVERAGE_OUTPUT_DIRECTORY}/coverage.json
DEPENDS ccov-all-processing)
DEPENDS ccov-all-report)
else()
add_custom_target(
ccov-all-export
Expand All @@ -773,7 +773,7 @@ function(add_code_coverage_all_targets)
-instr-profile=${CMAKE_COVERAGE_OUTPUT_DIRECTORY}/all-merged.profdata
-format="text" ${_exclude_regex} >
${CMAKE_COVERAGE_OUTPUT_DIRECTORY}/coverage.json
DEPENDS ccov-all-processing)
DEPENDS ccov-all-report)
endif()

# Generate HTML output of all added targets for perusal
Expand All @@ -788,7 +788,7 @@ function(add_code_coverage_all_targets)
-show-line-counts-or-regions
-output-dir=${CMAKE_COVERAGE_OUTPUT_DIRECTORY}/coverage
-format="html" ${_exclude_regex}
DEPENDS ccov-all-processing)
DEPENDS ccov-all-export)
else()
add_custom_target(
ccov-all
Expand All @@ -799,7 +799,7 @@ function(add_code_coverage_all_targets)
-show-line-counts-or-regions
-output-dir=${CMAKE_COVERAGE_OUTPUT_DIRECTORY}/coverage
-format="html" ${_exclude_regex}
DEPENDS ccov-all-processing)
DEPENDS ccov-all-export)
endif()

elseif(CMAKE_C_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES
Expand Down

0 comments on commit 6149608

Please # to comment.