diff options
-rw-r--r-- | meson.build | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/meson.build b/meson.build index a8955a49..cb691077 100644 --- a/meson.build +++ b/meson.build @@ -36,8 +36,6 @@ gsd_xdg_autostart = join_paths(gsd_sysconfdir, 'xdg', 'autostart') gsd_3_0_api_name = '@0@-@1@'.format(meson.project_name(), '3.0') gsd_gtk_modules_directory = join_paths(gsd_libdir, gsd_3_0_api_name, 'gtk-modules') -gsd_buildtype = get_option('buildtype') - host_is_darwin = host_machine.system().contains('darwin') host_is_linux = host_machine.system().contains('linux') host_is_linux_not_s390 = host_is_linux and not host_machine.cpu().contains('s390') @@ -62,7 +60,7 @@ endforeach common_flags = ['-DHAVE_CONFIG_H'] compiler_flags = [] -if gsd_buildtype.contains('debug') +if get_option('debug') common_flags += ['-DG_ENABLE_DEBUG'] test_cflags = [ @@ -78,7 +76,7 @@ if gsd_buildtype.contains('debug') ] compiler_flags = cc.get_supported_arguments(test_cflags) -elif gsd_buildtype.contains('release') +elif get_option('optimization') in ['2', '3', 's'] common_flags += ['-DG_DISABLE_CAST_CHECKS'] endif |