You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using meson rewrite to update the project version, it fails with a message like:
meson.build:1:0: ERROR: None of values ['gnu23'] are supported by the C compiler. Possible values for option "C_std" are ['none', 'c89', 'c99', 'c11', 'c17', 'c18', 'c2x', 'gnu89', 'gnu99', 'gnu11', 'gnu17', 'gnu18', 'gnu2x']
which is true, the project I am testing it on uses gnu23.
However by default meson is taking an old version of gcc as default compiler and not clang-19 which I set in a native-file.
Manually setting CC=clang-19 before running meson rewrite solves the issue.
To Reproduce
It is quite hard to replicate my exact configuration due to the specific requirements, but the bug description contains all the relevant information.
Expected behavior
I would expect a rewrite system for configuration files not to force the presence of a compiler upon the user. That meson file is going to run with a separate command regardless and with all the required context, so if its content is wrong it would just be shown later on.
The text was updated successfully, but these errors were encountered:
KaruroChori
changed the title
Meson rewrite requires a C compiler to operate
Meson rewrite requires a C compiler to operate and fails if the wrong one is picked
Dec 8, 2024
Describe the bug
When using
meson rewrite
to update the project version, it fails with a message like:which is true, the project I am testing it on uses gnu23.
However by default meson is taking an old version of
gcc
as default compiler and notclang-19
which I set in anative-file
.Manually setting
CC=clang-19
before runningmeson rewrite
solves the issue.To Reproduce
It is quite hard to replicate my exact configuration due to the specific requirements, but the bug description contains all the relevant information.
Expected behavior
I would expect a rewrite system for configuration files not to force the presence of a compiler upon the user. That meson file is going to run with a separate command regardless and with all the required context, so if its content is wrong it would just be shown later on.
The text was updated successfully, but these errors were encountered: