Skip to content

Display and control your Android device

Enable NDEBUG via Meson built-in option

Romain Vimont9cd1a7380db1
diff --git a/app/meson.build b/app/meson.build
index 1f50209e..75a2fd71 100644
--- a/app/meson.build
+++ b/app/meson.build
@@ -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())
diff --git a/meson.build b/meson.build
index 230f8d21..c2989ec7 100644
--- a/meson.build
+++ b/meson.build
@@ -4,6 +4,7 @@ project('scrcpy', 'c',
default_options: [
'c_std=c11',
'warning_level=2',
+ 'b_ndebug=if-release',
])
if get_option('compile_app')