Skip to content

Commit c38f2a3

Browse files
authored
Fix coverage parameter (#5760)
1 parent 724e9b1 commit c38f2a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/CodeCoverage.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,12 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
218218
set(COVERAGE_C_COMPILER_FLAGS "${COVERAGE_COMPILER_FLAGS} -fprofile-abs-path")
219219
endif()
220220

221-
check_cxx_compiler_flag(-fprofile-update HAVE_cxx_fprofile_update)
221+
check_cxx_compiler_flag(-fprofile-update=atomic HAVE_cxx_fprofile_update)
222222
if(HAVE_cxx_fprofile_update)
223223
set(COVERAGE_CXX_COMPILER_FLAGS "${COVERAGE_COMPILER_FLAGS} -fprofile-update=atomic")
224224
endif()
225225

226-
check_c_compiler_flag(-fprofile-update HAVE_c_fprofile_update)
226+
check_c_compiler_flag(-fprofile-update=atomic HAVE_c_fprofile_update)
227227
if(HAVE_c_fprofile_update)
228228
set(COVERAGE_C_COMPILER_FLAGS "${COVERAGE_COMPILER_FLAGS} -fprofile-update=atomic")
229229
endif()

0 commit comments

Comments
 (0)