mirror of
https://github.com/flightlessmango/MangoHud.git
synced 2024-10-31 15:20:13 +00:00
meson: option to add _GLIBCXX_ASSERTIONS define
This commit is contained in:
parent
b5bfd437a6
commit
6400ab3cdc
@ -50,6 +50,10 @@ if ['linux', 'cygwin', 'gnu'].contains(host_machine.system())
|
||||
pre_args += '-DHAVE_PTHREAD'
|
||||
endif
|
||||
|
||||
if get_option('glibcxx_asserts')
|
||||
pre_args += '-D_GLIBCXX_ASSERTIONS'
|
||||
endif
|
||||
|
||||
# Check for GCC style atomics
|
||||
if cc.compiles('''#include <stdint.h>
|
||||
int main() {
|
||||
|
1
meson_options.txt
Normal file
1
meson_options.txt
Normal file
@ -0,0 +1 @@
|
||||
option('glibcxx_asserts', type : 'boolean', value : false)
|
Loading…
Reference in New Issue
Block a user