1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 07:45:39 +00:00

Build tests by gcc with enabled stdlibc++ assertions in debug mode

This can catch some problems in the code like out of bounds access for
string_view element via operator[] when it refers a buffer larger than the
view.
This commit is contained in:
elsid 2022-02-17 01:27:25 +01:00
parent 4a2302ff2b
commit d96e2037e3
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40

View file

@ -116,11 +116,12 @@ Ubuntu_GCC_tests:
Ubuntu_GCC_tests_Debug:
extends: Ubuntu_GCC
cache:
key: Ubuntu_GCC_tests_Debug.v1
key: Ubuntu_GCC_tests_Debug.v2
variables:
CCACHE_SIZE: 1G
BUILD_TESTS_ONLY: 1
CMAKE_BUILD_TYPE: Debug
CMAKE_CXX_FLAGS_DEBUG: -g -O0 -D_GLIBCXX_ASSERTIONS
artifacts:
paths: []
expire_in: 1 minute