aboutsummaryrefslogtreecommitdiff
path: root/COPYING
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-07-25 16:46:45 -0400
committerNirbheek Chauhan <nirbheek@centricular.com>2022-08-08 19:10:32 +0530
commitfadf7ccf47a0825685e19cbd6042b1ccf1c7ae9c (patch)
tree546c31e5776302d6f59c4a5c02369c441a618204 /COPYING
parent552e06b7e08303f3419cdf1fe82ab7bb75244777 (diff)
downloadmeson-fadf7ccf47a0825685e19cbd6042b1ccf1c7ae9c.zip
meson-fadf7ccf47a0825685e19cbd6042b1ccf1c7ae9c.tar.gz
meson-fadf7ccf47a0825685e19cbd6042b1ccf1c7ae9c.tar.bz2
ninja depscanner: handle C++ sources named capital C
In commit 4ca9a16288f51cce99624a2ef595d879acdc02d8 we added unreliable support (it warns you if you try it) for gcc-compatible treatment of uppercase-C files being C++ instead of C. In order to handle it correctly, we needed to evaluate can-compile by special-casing "C" to avoid lowercasing it for comparisons. This didn't cover all cases where we check if "C" is a C++ language file. We also straight-up check the language of a file (rather than working backwards to see if a C++ compiler can compile it) when doing module scanning, and this needs to special-case "C" as well. We also had one case where we only checked lowercase fortran extensions, but not lowercase C++ extensions. While we are at it, use lowercase for C++ as well, except the "C" special case. Fixes #10629
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions