mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-16 22:05:45 -05: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
(cherry picked from commit 71cc47b859)
This commit is contained in:
parent
f02d3ef28b
commit
d8f110c5bc
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ project(
|
||||||
license: 'MIT',
|
license: 'MIT',
|
||||||
meson_version: '>=0.59.0',
|
meson_version: '>=0.59.0',
|
||||||
default_options: [
|
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',
|
'warning_level=2',
|
||||||
'werror=true',
|
'werror=true',
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue