Enable additional assertions in debug builds

This commit is contained in:
Robbert van der Helm
2021-04-30 16:06:50 +02:00
parent 66be22b902
commit 5680ed5035
+6
View File
@@ -43,6 +43,12 @@ compiler_options = [
# this flag.
'-msse2',
]
# Enable addition assertions on the STL containers during debug builds
if get_option('buildtype') == 'debug'
compiler_options += ['-D_GLIBCXX_DEBUG']
endif
# NOTE: GCC doesn't 8-byte align doubles in structs on x86 for ABI-compatibilty
# reasons, but MSVC++ does. We need to force this same alignment to be
# ABI-compatible with 32-bit binaries created with MSVC++ on Windows.