diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-01-08 15:29:46 -0500 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2023-02-19 02:55:56 +0530 |
commit | 1e2ff9526c5b341a01577a45e62924795e5a0eb5 (patch) | |
tree | 161b847f1de4e8583e09035e527ffcd9b2f4a143 /docs/refman/model.py | |
parent | 7d2e30375cd9704089a6e5f13395541016e03061 (diff) | |
download | meson-1e2ff9526c5b341a01577a45e62924795e5a0eb5.zip meson-1e2ff9526c5b341a01577a45e62924795e5a0eb5.tar.gz meson-1e2ff9526c5b341a01577a45e62924795e5a0eb5.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 'docs/refman/model.py')
0 files changed, 0 insertions, 0 deletions