Skip to content

Commit

Permalink
Revert to old coverage settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jszczerbinski authored and sfc-gh-dprzybysz committed Dec 20, 2024
1 parent 65ef675 commit 9333bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (LINUX)
# Code coverage for Linux
if (CLIENT_CODE_COVERAGE) # Only when code coverage is enabled
message("Code coverage is enabled CLIENT_CODE_COVERAGE=" ${CLIENT_CODE_COVERAGE})
add_compile_options(--coverage -O0 $<$<COMPILE_LANGUAGE:CXX>:-fno-elide-constructors> -fno-inline -fno-inline-small-functions -fno-default-inline)
add_compile_options(--coverage -fprofile-arcs -ftest-coverage -O0 $<$<COMPILE_LANGUAGE:CXX>:-fno-elide-constructors> $<$<COMPILE_LANGUAGE:CXX>:-fno-inline> $<$<COMPILE_LANGUAGE:CXX>:-fno-inline-small-functions> $<$<COMPILE_LANGUAGE:CXX>:-fno-default-inline>)
add_link_options(--coverage)
else()
message("Code coverage is disabled CLIENT_CODE_COVERAGE=" ${CLIENT_CODE_COVERAGE})
Expand Down

0 comments on commit 9333bf1

Please sign in to comment.