diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2020-04-08 15:14:31 -0400 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.com> | 2020-04-09 09:17:35 -0400 |
commit | be3728b9fa319774687c91d3844e237dbaf1980c (patch) | |
tree | 65fc0c49749844c2ea37db9e3282d0ad64b24f31 /meson_options.txt | |
parent | 1a3a1865ebd5b8789f7aa981329c29838af38836 (diff) | |
download | glib-be3728b9fa319774687c91d3844e237dbaf1980c.tar.gz |
Meson: Add glib_checks and glib_asserts options
In cases where performance are critical it can be useful to disable
checks and asserts. GStreamer has those options too, using the same name
and setting them yielding means we can set those options on the main
project (e.g. gst-build) and glib will inherit the same value when built
as subproject.
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt index 6c72168dd..80a1d9d8f 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -94,3 +94,15 @@ option('oss_fuzz', type : 'feature', value : 'disabled', description : 'Indicate oss-fuzz build environment') + +option('glib_assert', + type : 'boolean', + value : true, + yield : true, + description : 'Enable GLib assertion (see docs/macros.txt)') + +option('glib_checks', + type : 'boolean', + value : true, + yield : true, + description : 'Enable GLib checks such as API guards (see docs/macros.txt)') |