From 9333bf141bc0f9cf5afce85dcaa289d01dff1944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Szczerbi=C5=84ski?= Date: Fri, 13 Dec 2024 12:04:47 +0100 Subject: [PATCH] Revert to old coverage settings --- cmake/flags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/flags.cmake b/cmake/flags.cmake index abd6d499b9..681a9d9a05 100644 --- a/cmake/flags.cmake +++ b/cmake/flags.cmake @@ -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 $<$:-fno-elide-constructors> -fno-inline -fno-inline-small-functions -fno-default-inline) + add_compile_options(--coverage -fprofile-arcs -ftest-coverage -O0 $<$:-fno-elide-constructors> $<$:-fno-inline> $<$:-fno-inline-small-functions> $<$:-fno-default-inline>) add_link_options(--coverage) else() message("Code coverage is disabled CLIENT_CODE_COVERAGE=" ${CLIENT_CODE_COVERAGE})