diff --git a/meson.build b/meson.build index 62b313c7a2..a9193e32e1 100644 --- a/meson.build +++ b/meson.build @@ -68,8 +68,10 @@ if compiler.get_argument_syntax()== 'gcc' # used for gcc compatible compilers if debug_type == 'release' preprocessor_flags += ['-DRELEASE_BUILD'] # enable minimal debug features elif debug_type == 'minimal' + extra_args += ['-Og'] # debug-compatible optimizations preprocessor_flags += ['-DMIN_DEBUG_BUILD', '-DDEBUGMODE'] # enable some debug features elif debug_type == 'full' + extra_args += ['-Og'] # debug-compatible optimizations preprocessor_flags += ['-DDEBUG_BUILD', '-DDEBUGMODE'] # enable all debug features; may slow down game endif else