diff options
author | Dylan Baker <dylan.c.baker@intel.com> | 2022-12-20 14:46:17 -0800 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-01-19 16:29:03 +0000 |
commit | 45632b3297ca1b47214b326e95d7407442622847 (patch) | |
tree | 8f5c2fb21e4381d71cebbc9b428957711e72792f /meson.build | |
parent | 6ff334e54a2d3455a9c532b146b2fb77a757af02 (diff) | |
download | mesa-45632b3297ca1b47214b326e95d7407442622847.tar.gz |
meson: bump minimum required version to meson 0.59
This gives us some utility methods for feature options, allowing even
simpler code. We can replace something like:
```meson
_opt = get_option('opt')
if _opt.auto()
opt = host_machine.system() != 'windows'
else
opt = opt.enabled()
endif
```
with
```meson
opt = get_option('opt') \
.disable_auto_if(host_machine.system() != 'windows') \
.allowed()
```
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 79baae7b45f..3a9d8fb9a69 100644 --- a/meson.build +++ b/meson.build @@ -27,7 +27,7 @@ project( check : true ).stdout(), license : 'MIT', - meson_version : '>= 0.54', + meson_version : '>= 0.59', default_options : ['buildtype=debugoptimized', 'b_ndebug=if-release', 'c_std=c11', 'cpp_std=c++17', 'rust_std=2021'] ) |