Skip to content

Commit 9371817

Browse files
committed
add -fprofile-update=atomic flag to coverage.
1 parent da97bf3 commit 9371817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ SET(FORCE_COLORED_OUTPUT ON CACHE BOOL "Forces colored output when compiling wit
352352
IF ( CMAKE_BUILD_TYPE STREQUAL Coverage )
353353
SET(CMAKE_VERBOSE_MAKEFILE on )
354354
SET(WB_COMPILER_OPTIONS_PRIVATE_COVERAGE_NEW --coverage -fprofile-arcs -ftest-coverage -g)
355-
SET(WB_COMPILER_OPTIONS_PRIVATE_COVERAGE_OLD "--coverage -fprofile-arcs -ftest-coverage -g")
355+
SET(WB_COMPILER_OPTIONS_PRIVATE_COVERAGE_OLD "--coverage -fprofile-arcs -ftest-coverage -g -fprofile-update=atomic")
356356

357357
## for old versions of cmake
358358
SET(WB_FORTRAN_COMPILER_FLAGS_COVERAGE "--coverage")

0 commit comments

Comments
 (0)