diff options
author | Christian Hergert <chergert@redhat.com> | 2023-03-17 15:37:18 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2023-03-22 16:44:35 -0700 |
commit | 4cd1e7e97f217f50a056680c57eba13c2026b6cf (patch) | |
tree | 98ce121dc0ff0ff4a34e43e4b16d5e1f73c8f267 | |
parent | eefef26682bea3b82e9c34cb8fad2fdd0af42632 (diff) | |
download | libpeas-4cd1e7e97f217f50a056680c57eba13c2026b6cf.tar.gz |
build: disable assert/cast-checks in production builds
-rw-r--r-- | meson.build | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 64b5918..71b7cef 100644 --- a/meson.build +++ b/meson.build @@ -268,6 +268,9 @@ foreach arg: test_c_args global_c_args += arg endif endforeach +if not get_option('buildtype').startswith('debug') + global_c_args += ['-DG_DISABLE_CAST_CHECKS', '-DG_DISABLE_ASSERT'] +endif add_project_arguments(global_c_args, language: 'c') module_suffix = [] |