Enable NDEBUG via Meson built-in option
This commit is contained in:
parent
24b637b972
commit
9cd1a7380d
2 changed files with 1 additions and 3 deletions
|
@ -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…
Reference in a new issue