diff options
author | prettyboy <prettyboy@yandex-team.com> | 2025-07-22 20:01:04 +0300 |
---|---|---|
committer | prettyboy <prettyboy@yandex-team.com> | 2025-07-22 20:25:49 +0300 |
commit | 2c8982d662d40e0bf2ed5e776f0c961299a04eb2 (patch) | |
tree | 4b129ed2634a312699142593017605e2f9eb8577 | |
parent | 3102e1630f400423c5b7b71a1d9254680d6d9731 (diff) | |
download | ydb-2c8982d662d40e0bf2ed5e776f0c961299a04eb2.tar.gz |
[devtools/ya] Added support of --clang-mcdc-coverage option
commit_hash:e7ef68892cb54f8c06f711181664f8e5bbbcef86
-rw-r--r-- | build/conf/coverage_full_instrumentation.conf | 6 | ||||
-rw-r--r-- | build/conf/coverage_selective_instrumentation.conf | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/build/conf/coverage_full_instrumentation.conf b/build/conf/coverage_full_instrumentation.conf index d664aaa575c..de478eb8f8e 100644 --- a/build/conf/coverage_full_instrumentation.conf +++ b/build/conf/coverage_full_instrumentation.conf @@ -3,7 +3,11 @@ USE_SCU_VALUE="yes" macro POPULATE_CPP_COVERAGE_FLAGS() { when ($CLANG_COVERAGE && $CLANG_COVERAGE != "no") { CFLAGS+=-fprofile-instr-generate -fcoverage-mapping -DCLANG_COVERAGE - LDFLAGS+=-fprofile-instr-generate -fcoverage-mapping + LDFLAGS+=-fprofile-instr-generate -fcoverage-mapping + when ($CLANG_MCDC_COVERAGE == "yes") { + CFLAGS+=-fcoverage-mcdc + LDFLAGS+=-fcoverage-mcdc + } } } diff --git a/build/conf/coverage_selective_instrumentation.conf b/build/conf/coverage_selective_instrumentation.conf index e72db7c7573..eda61fa65ed 100644 --- a/build/conf/coverage_selective_instrumentation.conf +++ b/build/conf/coverage_selective_instrumentation.conf @@ -12,6 +12,10 @@ macro _SETUP_CLANG_COVERAGE() { ENABLE(NEED_PROFILE_RUNTIME) CFLAGS(-fprofile-instr-generate -fcoverage-mapping -DCLANG_COVERAGE) SET_APPEND(LDFLAGS -fprofile-instr-generate -fcoverage-mapping) + when ($CLANG_MCDC_COVERAGE == "yes") { + CFLAGS+=-fcoverage-mcdc + LDFLAGS+=-fcoverage-mcdc + } PEERDIR(library/cpp/testing/dump_clang_coverage) } |