Replace the specific gcov compile and link options with generic --coverage
Follow up commit fixing review comments. Amends 42d29441914da263a160d631f56c6d95f85eac70 Task-number: QTBUG-86223 Change-Id: Ia1353fd9855d6811e58ae8b706e932f01fdeec28 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
8842391e5c
commit
e38eef345e
@ -369,8 +369,8 @@ endif()
|
|||||||
function(qt_internal_apply_coverage_flags)
|
function(qt_internal_apply_coverage_flags)
|
||||||
if(QT_FEATURE_coverage_gcov)
|
if(QT_FEATURE_coverage_gcov)
|
||||||
target_compile_options(PlatformCommonInternal INTERFACE
|
target_compile_options(PlatformCommonInternal INTERFACE
|
||||||
"$<$<CONFIG:Debug>:-fprofile-arcs;-ftest-coverage>")
|
"$<$<CONFIG:Debug>:--coverage>")
|
||||||
target_link_options(PlatformCommonInternal INTERFACE "$<$<CONFIG:Debug>:-lgcov;--coverage>")
|
target_link_options(PlatformCommonInternal INTERFACE "$<$<CONFIG:Debug>:--coverage>")
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
qt_internal_apply_coverage_flags()
|
qt_internal_apply_coverage_flags()
|
||||||
|
@ -1053,7 +1053,7 @@ qt_feature("intelcet" PRIVATE
|
|||||||
if("${INPUT_coverage}" STREQUAL "gcov")
|
if("${INPUT_coverage}" STREQUAL "gcov")
|
||||||
qt_config_compile_test(gcov
|
qt_config_compile_test(gcov
|
||||||
LABEL "gcov compiler flags"
|
LABEL "gcov compiler flags"
|
||||||
COMPILE_OPTIONS "-fprofile-arcs -ftest-coverage"
|
COMPILE_OPTIONS "--coverage"
|
||||||
CODE
|
CODE
|
||||||
"int main(void)
|
"int main(void)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user