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.pri | |
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.pri')
-rw-r--r-- | configure.pri | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.pri b/configure.pri index 57a813023e..e775bf046e 100644 --- a/configure.pri +++ b/configure.pri @@ -72,7 +72,9 @@ defineTest(qtConfCommandline_coverage) { !contains(val, "^-.*"):!isEmpty(val) { equals(val, "trace-pc-guard") { qtConfCommandlineSetInput("coverage_trace_pc_guard", "yes") - } else { + } else: equals(val, "source-based") { + qtConfCommandlineSetInput("coverage_source_based", "yes") + } else: { qtConfAddError("Invalid argument $$val to command line parameter $$arg") } } else { |