patch-r263048-clang-r203624-fix-CC-aliases.diff revision 269012
1Pull in r203624 from upstream clang trunk (by Hans Wennborg):
2
3  Be case sensitive when determining driver mode based on argv[0] except on Windows
4
5  This narrows the impact of r188833 after Dimitry pointed out that it's good to be
6  able to tell the difference between 'cc' and 'CC'.
7
8Introduced here: http://svnweb.freebsd.org/changeset/base/263048
9
10Index: tools/clang/tools/driver/driver.cpp
11===================================================================
12--- tools/clang/tools/driver/driver.cpp
13+++ tools/clang/tools/driver/driver.cpp
14@@ -229,8 +229,10 @@ static void ParseProgName(SmallVectorImpl<const ch
15     { "++",        "--driver-mode=g++" },
16   };
17   std::string ProgName(llvm::sys::path::stem(ArgVector[0]));
18+#ifdef _WIN32
19   std::transform(ProgName.begin(), ProgName.end(), ProgName.begin(),
20                  toLowercase);
21+#endif
22   StringRef ProgNameRef(ProgName);
23   StringRef Prefix;
24 
25