diff options
author | iaz1607 <iaz1607@yandex-team.com> | 2023-06-14 10:43:10 +0300 |
---|---|---|
committer | iaz1607 <iaz1607@yandex-team.com> | 2023-06-14 10:43:10 +0300 |
commit | 165d9ed7252485d8077edb80973f2b2f6b72ba0b (patch) | |
tree | c05a6612181e5b16d2779b38571711b87f98f2ce /build/ymake.core.conf | |
parent | 0b348476dc902c9b6ee3451a0cab9ed95a09ebf2 (diff) | |
download | ydb-165d9ed7252485d8077edb80973f2b2f6b72ba0b.tar.gz |
Disable coverage for ragel and .pyx
Diffstat (limited to 'build/ymake.core.conf')
-rw-r--r-- | build/ymake.core.conf | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/build/ymake.core.conf b/build/ymake.core.conf index 58b43fe2e5..9ed91c5729 100644 --- a/build/ymake.core.conf +++ b/build/ymake.core.conf @@ -6447,12 +6447,22 @@ macro _SRC_c_nodeps(SRC, OUTFILE, INC...) { # # cython generated code also fails to pass this diagnostics due to `fallthrough annotation in unreachable code`. # We use cython==0.29.26 at the time. This issue might be fixed in further versions. - +# +# flags -fno-profile-instr-generate -fno-coverage-mapping needed to always disable coverage for .pyx, .rl5, .rl6 +# generated sources ## tag:src-processing -_LANG_CFLAGS_FILTER=\ - ${pre=-Wno-implicit-fallthrough SKIP ;ext=.rl5:SRC} \ - ${pre=-Wno-implicit-fallthrough SKIP ;ext=.rl6:SRC} \ - ${pre=-Wno-implicit-fallthrough SKIP ;ext=.pyx:SRC} +when ($CLANG == "yes") { + _LANG_CFLAGS_FILTER=\ + ${pre=-Wno-implicit-fallthrough -fno-profile-instr-generate -fno-coverage-mapping SKIP ;ext=.rl5:SRC} \ + ${pre=-Wno-implicit-fallthrough -fno-profile-instr-generate -fno-coverage-mapping SKIP ;ext=.rl6:SRC} \ + ${pre=-Wno-implicit-fallthrough -fno-profile-instr-generate -fno-coverage-mapping SKIP ;ext=.pyx:SRC} +} +otherwise { + _LANG_CFLAGS_FILTER=\ + ${pre=-Wno-implicit-fallthrough SKIP ;ext=.rl5:SRC} \ + ${pre=-Wno-implicit-fallthrough SKIP ;ext=.rl6:SRC} \ + ${pre=-Wno-implicit-fallthrough SKIP ;ext=.pyx:SRC} +} # tag:src-processing # Magic macro for removing file name from result (file name is passed as unused SKIP parameter) |