Repair recognition of "CC" as an alias for the C++ compiler, since it

was silently broken by upstream for a Windows-specific use-case.

Apparently some versions of CMake still rely on this archaic feature...

Reported by:	rakuco
MFC after:	3 days
X-MFC-With:	r261991
This commit is contained in:
Dimitry Andric 2014-03-11 21:11:43 +00:00
parent 890859c77b
commit bffb01c6d1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=263048

View File

@ -229,8 +229,10 @@ static void ParseProgName(SmallVectorImpl<const char *> &ArgVector,
{ "++", "--driver-mode=g++" },
};
std::string ProgName(llvm::sys::path::stem(ArgVector[0]));
#ifdef _WIN32
std::transform(ProgName.begin(), ProgName.end(), ProgName.begin(),
toLowercase);
#endif
StringRef ProgNameRef(ProgName);
StringRef Prefix;