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
Meson ≥ 1.3.0 warns if c_std=gnu99 (or any other gnuXX) is used with MSVC:
DEPRECATION: None of the values ['gnu99'] are supported by the c compiler.
However, the deprecated gnu99 std currently falls back to c99.
This will be an error in the future.
If the project supports both GNU and MSVC compilers, a value such as
"c_std=gnu11,c11" specifies that GNU is preferred but it can safely fallback to plain c11.
The phrase This will be an error in the future, and the corresponding hard failure with --fatal-meson-warnings, strongly encourages projects to move to c_std=gnu99,c99. However, the latter is a hard failure on Meson < 1.3.0:
meson.build:1:0: ERROR: Value "gnu99,c99" (of type "string") for combo option "C language standard to use" is not one of the choices. Possible choices are (as string): "none", "c89", "c99", "c11", "c17", "c18", "c2x", "gnu89", "gnu99", "gnu11", "gnu17", "gnu18", "gnu2x".
in the project() call, but that's not at all obvious. Projects that don't CI with older Meson versions won't notice that they need this until a user tries to build with MSVC and an older Meson.
Describe the bug
Meson ≥ 1.3.0 warns if
c_std=gnu99
(or any othergnuXX
) is used with MSVC:The phrase
This will be an error in the future
, and the corresponding hard failure with--fatal-meson-warnings
, strongly encourages projects to move toc_std=gnu99,c99
. However, the latter is a hard failure on Meson < 1.3.0:The workaround is to specify
in the
project()
call, but that's not at all obvious. Projects that don't CI with older Meson versions won't notice that they need this until a user tries to build with MSVC and an older Meson.To Reproduce
Expected behavior
Meson prints a warning that
c_std=gnu99,c99
is not available before Meson 1.3.0.system parameters
native
Fedora 40
3.12.5
meson --version
1.5.0
ninja --version
if it's a Ninja buildn/a
The text was updated successfully, but these errors were encountered: