Enable NDEBUG via Meson built-in option

filter.12
Romain Vimont 3 years ago
parent 24b637b972
commit 9cd1a7380d

@ -99,9 +99,6 @@ foreach f : check_functions
endif
endforeach
# expose the build type
conf.set('NDEBUG', get_option('buildtype') != 'debug')
# the version, updated on release
conf.set_quoted('SCRCPY_VERSION', meson.project_version())

@ -4,6 +4,7 @@ project('scrcpy', 'c',
default_options: [
'c_std=c11',
'warning_level=2',
'b_ndebug=if-release',
])
if get_option('compile_app')

Loading…
Cancel
Save