diff options
author | dim <dim@FreeBSD.org> | 2014-03-11 21:11:43 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-03-11 21:11:43 +0000 |
commit | 72e3ed2c5c9f6c458276d6a000ac0d75b3cffdc4 (patch) | |
tree | 3728430c1162ac3edaa58135b942c5fc1ac9e834 /contrib/llvm | |
parent | d9a858680e1c9b1ddc71304c02c18ff027da297b (diff) | |
download | FreeBSD-src-72e3ed2c5c9f6c458276d6a000ac0d75b3cffdc4.zip FreeBSD-src-72e3ed2c5c9f6c458276d6a000ac0d75b3cffdc4.tar.gz |
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
Diffstat (limited to 'contrib/llvm')
-rw-r--r-- | contrib/llvm/tools/clang/tools/driver/driver.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/llvm/tools/clang/tools/driver/driver.cpp b/contrib/llvm/tools/clang/tools/driver/driver.cpp index 36dcf36..3ff200b 100644 --- a/contrib/llvm/tools/clang/tools/driver/driver.cpp +++ b/contrib/llvm/tools/clang/tools/driver/driver.cpp @@ -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; |