diff --git a/cmake/Coverage.cmake b/cmake/Coverage.cmake index aa2bae3bf5..9178c17636 100644 --- a/cmake/Coverage.cmake +++ b/cmake/Coverage.cmake @@ -34,7 +34,7 @@ if(NRN_ENABLE_COVERAGE) if(NOT BUILD_TYPE_UPPER STREQUAL "DEBUG") message(WARNING "Using CMAKE_BUILD_TYPE=Debug is recommended with NRN_ENABLE_COVERAGE") endif() - set(NRN_COVERAGE_FLAGS_UNQUOTED --coverage -fno-inline) + set(NRN_COVERAGE_FLAGS_UNQUOTED --coverage -fno-inline -fprofile-update=atomic) string(JOIN " " NRN_COVERAGE_FLAGS ${NRN_COVERAGE_FLAGS_UNQUOTED}) set(NRN_COVERAGE_LINK_FLAGS --coverage)