mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-21 14:42:25 +00:00
Fix Meson version required for C23 support
Attempting to build with Meson 1.3.2 (current version in Ubuntu 24.04 LTS) gives the following error: meson.build:1:0: ERROR: Unknown C std ['c23']. This is because C23 support was not added until Meson 1.4.0. See: https://github.com/mesonbuild/meson/blob/1.3.2/mesonbuild/compilers/c.py#L59 https://github.com/mesonbuild/meson/blob/1.4.0/mesonbuild/compilers/c.py#L49
This commit is contained in:
parent
08e779bd85
commit
71cc47b859
@ -5,7 +5,7 @@ project(
|
||||
license: 'MIT',
|
||||
meson_version: '>=1.3',
|
||||
default_options: [
|
||||
'c_std=' + (meson.version().version_compare('>=1.3.0') ? 'c23,c11' : 'c11'),
|
||||
'c_std=' + (meson.version().version_compare('>=1.4.0') ? 'c23,c11' : 'c11'),
|
||||
'warning_level=2',
|
||||
'werror=true',
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user