diff options
author | Robert Griebl <robert.griebl@qt.io> | 2024-03-02 22:26:44 +0100 |
---|---|---|
committer | Robert Griebl <robert.griebl@qt.io> | 2024-03-05 12:30:26 +0100 |
commit | 9c19aa9a3ae7d1eb60620e912f4c2a26cfb2b5a6 (patch) | |
tree | 422eeea837a170d9173261a8e336818e43b05811 | |
parent | fae4b94f1ca73c51c65de568d4106f5346a32b0d (diff) |
coverage: use modern gcc commandline options
Change-Id: Ia4965266177d622b8de8d6173912fc690712ee6b
Pick-to: 6.7
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index aab37293..0fca2a4e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,10 +69,9 @@ if(AM_COVERAGE) set(QT_BUILD_TESTS ON) set(QT_BUILD_TESTS_BY_DEFAULT ON) - add_compile_options(-fprofile-arcs -ftest-coverage -fprofile-update=atomic) - add_link_options(-fprofile-arcs -fprofile-generate --coverage) + add_compile_options(--coverage -fprofile-update=atomic) + add_link_options(--coverage) add_compile_definitions(QT_AM_COVERAGE) - link_libraries(gcov) set(GCOV_EXCLUDE '/usr/*' |