From 6b5a4e80285da5c57358f992b9bc9e546eb8bf64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Thu, 23 Apr 2020 18:29:52 +0000 Subject: [PATCH] Use Meson's b_ndebug option to decide on checks --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index be34682..98c8d28 100644 --- a/meson.build +++ b/meson.build @@ -6,7 +6,8 @@ host_os = host_os_family cc = meson.get_compiler('c') frida_component_cflags = [] -if get_option('optimization') in ['2', '3', 's'] and not get_option('debug') +ndebug = get_option('b_ndebug') +if ndebug == 'true' or (ndebug == 'if-release' and not get_option('debug')) frida_component_cflags += [ '-DG_DISABLE_ASSERT', '-DG_DISABLE_CHECKS',