From f5576867748c8941cfc13360cc28526f2703e575 Mon Sep 17 00:00:00 2001 From: Nikita Taranov Date: Sat, 27 Jul 2024 21:24:13 +0100 Subject: [PATCH] cherry on top of this cake --- cmake/sanitize.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/sanitize.cmake b/cmake/sanitize.cmake index 3f111bc65c4..d8d211b9329 100644 --- a/cmake/sanitize.cmake +++ b/cmake/sanitize.cmake @@ -58,6 +58,7 @@ option(WITH_COVERAGE "Instrumentation for code coverage with default implementat if (WITH_COVERAGE) message (STATUS "Enabled instrumentation for code coverage") set(COVERAGE_FLAGS "SHELL:-fprofile-instr-generate -fcoverage-mapping") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fprofile-instr-generate -fcoverage-mapping") endif() option (SANITIZE_COVERAGE "Instrumentation for code coverage with custom callbacks" OFF)