1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-02 20:41:33 +00:00

Use -fprofile-update=atomic for coverage build

Otherwise counters might become negative leading to gcovr failure.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68080.
This commit is contained in:
elsid 2025-04-26 13:17:09 +02:00
parent 0166b07ad5
commit 0196cf453d
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40

View file

@ -21,7 +21,7 @@ declare -a CMAKE_CONF_OPTS=(
)
if [[ "${BUILD_WITH_CODE_COVERAGE}" ]]; then
CMAKE_CXX_FLAGS_DEBUG="${CMAKE_CXX_FLAGS_DEBUG} --coverage"
CMAKE_CXX_FLAGS_DEBUG="${CMAKE_CXX_FLAGS_DEBUG} --coverage -fprofile-update=atomic"
CMAKE_EXE_LINKER_FLAGS="${CMAKE_EXE_LINKER_FLAGS} --coverage"
fi