diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-08-09 11:11:16 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-08-10 12:00:13 +0200 |
commit | 0e92ec972840e78b6f38d0f554ec1554edf752d1 (patch) | |
tree | d32ea8c8377cc0826d33606b86f608a4edd2b05c /tests | |
parent | 84aba80944a2e1c3058d7a1372e0e66676411884 (diff) |
Remove dysfunctional -coverage configure argument
The -coverage argument merely added compiler flags for the Qt build. It
was never properly ported to the CMake build, and it doesn't seem
feasible to have configure arguments for every possible compiler option.
The same can be achieved by passing the needed compiler option to CMake,
for example: CMAKE_CXX_FLAGS=-fsanitize-coverage=trace-pc-guard
Pick-to: 6.2
Fixes: QTBUG-86227
Change-Id: Ieef9acaedc0a839f9fb35b4403395eea28643864
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libfuzzer/README | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libfuzzer/README b/tests/libfuzzer/README index 303fb9024a..33aa309670 100644 --- a/tests/libfuzzer/README +++ b/tests/libfuzzer/README @@ -19,7 +19,7 @@ To run a test with libFuzzer: 3. Configure Qt with -platform linux-clang -sanitize fuzzer-no-link or, if you are using clang 5 - -platform linux-clang -coverage trace-pc-guard + -platform linux-clang -- -DCMAKE_CXX_FLAGS=-fsanitize-coverage=trace-pc-guard to add the needed code coverage instrumentation. Since speed of execution is crucial for fuzz testing, it's recommendable to also use the switches -release -static |