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:
parent
0166b07ad5
commit
0196cf453d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue