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>
This commit is contained in:
@@ -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']
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user