diff options
author | Robert Loehning <robert.loehning@qt.io> | 2019-12-19 17:51:21 +0100 |
---|---|---|
committer | Robert Loehning <robert.loehning@qt.io> | 2020-01-28 20:26:15 +0000 |
commit | 94bc57213f9a8a74e9e7520de68d7bba7f42ea4c (patch) | |
tree | 129ab902c9e3dc54183b583d6159dd9642882a72 /configure.json | |
parent | a611c632bb906cf77dd3af29ddd7b166f79ad1b0 (diff) |
configure: Add switch for clang's "source-based" code coverage feature
This adds instrumentation to the binaries. At the end of their
execution, these will then write a file containing information which code
was executed. This can be used for code coverage analysis.
[ChangeLog][QtCore][configure] Add switch "-coverage source-based" to
enable clang's "source-based" code coverage feature. This can be used
for code coverage analysis.
Change-Id: If31c6849aa797ff8820e041e85a492a14e2f1a6b
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'configure.json')
-rw-r--r-- | configure.json | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.json b/configure.json index 4218144357..96cca22b31 100644 --- a/configure.json +++ b/configure.json @@ -916,9 +916,14 @@ "autoDetect": false, "output": [ "publicConfig" ] }, + "coverage_source_based": { + "label": "source-based", + "autoDetect": false, + "output": [ "publicConfig" ] + }, "coverage": { "label": "Code Coverage Instrumentation", - "condition": "features.coverage_trace_pc_guard", + "condition": "features.coverage_trace_pc_guard || features.coverage_source_based", "output": [ "publicConfig" ] }, "GNUmake": { @@ -1612,7 +1617,7 @@ Configure with '-qreal float' to create a build that is binary-compatible with 5 { "message": "Code Coverage Instrumentation", "type": "firstAvailableFeature", - "args": "coverage_trace_pc_guard", + "args": "coverage_trace_pc_guard coverage_source_based", "condition": "features.coverage" }, { |