Link with gcov.

develop
Roman Telezhynskyi 2024-03-12 18:40:44 +02:00
parent 0e43aefe79
commit 6292ce3d8f
1 changed files with 5 additions and 0 deletions

View File

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