diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-01-08 15:29:46 -0500 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2023-01-08 18:02:37 -0500 |
commit | 9f12f6e1586b91e10ec950d0e334b3d1159d00b7 (patch) | |
tree | e3404692f4240ab1ce85798ae4ab9aa757060103 /mesonbuild/modules/java.py | |
parent | 25e73b6c9e9599e852fba1f153497de1eccd862b (diff) | |
download | meson-9f12f6e1586b91e10ec950d0e334b3d1159d00b7.zip meson-9f12f6e1586b91e10ec950d0e334b3d1159d00b7.tar.gz meson-9f12f6e1586b91e10ec950d0e334b3d1159d00b7.tar.bz2 |
msvc: handle filename extensions for incdetect based on the compiler language
It is possible, albeit possibly inadvisable, for the exact combination
of MSVC and "$CXX has C++ specific flags in it" to occur. When this
happens, and cl.exe is given a filename ending in .c, it complains that
you cannot compile a .c file with that option.
Instead, pick the first filename matching that language and use that as
the temporary filename. This more or less matches what we do in
compiler-time checks. And it's the proper thing to do, rather than
assume that cl.exe, when detected as the current C++ compiler, can
*also* compile C because it's *also* a C compiler.
Fixes #11257
Diffstat (limited to 'mesonbuild/modules/java.py')
0 files changed, 0 insertions, 0 deletions