Enable NDEBUG via Meson built-in option

This commit is contained in:
Romain Vimont 2021-02-16 23:26:35 +01:00
parent 24b637b972
commit 9cd1a7380d
2 changed files with 1 additions and 3 deletions

View file

@ -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())

View file

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