Open amyspark opened 1 year ago
I made a fix for that a while ago https://github.com/mesonbuild/meson/pull/10332
@xclaesse I think a better way (for this bug only) would be to implement the dictionary of flags for cpp, so that the meaning of cpp_std
doesn't change.
Describe the bug
When the compiler is MSVC, Meson can automatically "downgrade" or fall the GNU
c_std
flags to the standard ones.https://github.com/mesonbuild/meson/blob/f6d13c69e521c6d94eb695c05d4f8f4091bd0172/mesonbuild/compilers/c.py#L464-L494
However, in the C++ equivalent, this fallback code is simply missing.
https://github.com/mesonbuild/meson/blob/f6d13c69e521c6d94eb695c05d4f8f4091bd0172/mesonbuild/compilers/cpp.py#L727-L737
This causes the equivalent project to instead fail configuration instantly.
To Reproduce
meson.build:
Expected behavior
Configuration should succeed, by downgrading
gnu89
to nothing (👍 ) andgnu++11
to nothing (since the default is C++14).system parameters
meson --version
1.0.1ninja --version
if it's a Ninja build 1.10.2.git.kitware.jobserver-1