Link with gcov.

This commit is contained in:
Roman Telezhynskyi 2024-03-12 18:40:44 +02:00
parent 0e43aefe79
commit 6292ce3d8f

View File

@ -20,6 +20,11 @@ Module {
return flags; return flags;
} }
Properties {
condition: qbs.toolchain.contains("gcc") && !qbs.toolchain.contains("clang")
cpp.staticLibraries: ["gcov"]
}
Rule { // Fake rule for '*.gcno' generation. Rule { // Fake rule for '*.gcno' generation.
condition: qbs.debugInformation && qbs.toolchain.contains("gcc") && !qbs.toolchain.contains("clang") condition: qbs.debugInformation && qbs.toolchain.contains("gcc") && !qbs.toolchain.contains("clang")
inputs: ["cpp", "c"] inputs: ["cpp", "c"]