From c463dd1dfe29e35c4bdfc8a891abba0bf0a4fa10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Sat, 4 Apr 2020 07:05:37 +0200 Subject: [PATCH] Fix check deciding on assertions and checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of relying on “buildtype”, consider “optimization” and “debug”. Thanks @nirbheek! --- meson.build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 3af4ca1..be34682 100644 --- a/meson.build +++ b/meson.build @@ -6,8 +6,7 @@ host_os = host_os_family cc = meson.get_compiler('c') frida_component_cflags = [] -buildtype = get_option('buildtype') -if buildtype == 'release' or buildtype == 'minsize' +if get_option('optimization') in ['2', '3', 's'] and not get_option('debug') frida_component_cflags += [ '-DG_DISABLE_ASSERT', '-DG_DISABLE_CHECKS',