2014-03-18 23:07:45 +01:00
|
|
|
This patch adds "CC" and "clang-CC" to the list of program name aliases which
|
|
|
|
invoke the C++ compiler.
|
|
|
|
|
2014-05-25 00:27:31 +02:00
|
|
|
Introduced here: http://svnweb.freebsd.org/changeset/base/257109
|
2014-03-18 23:07:45 +01:00
|
|
|
|
|
|
|
Index: tools/clang/tools/driver/driver.cpp
|
|
|
|
===================================================================
|
|
|
|
--- tools/clang/tools/driver/driver.cpp
|
|
|
|
+++ tools/clang/tools/driver/driver.cpp
|
|
|
|
@@ -215,6 +215,7 @@ static void ParseProgName(SmallVectorImpl<const ch
|
|
|
|
} suffixes [] = {
|
|
|
|
{ "clang", 0 },
|
|
|
|
{ "clang++", "--driver-mode=g++" },
|
|
|
|
+ { "clang-CC", "--driver-mode=g++" },
|
|
|
|
{ "clang-c++", "--driver-mode=g++" },
|
|
|
|
{ "clang-cc", 0 },
|
|
|
|
{ "clang-cpp", "--driver-mode=cpp" },
|
|
|
|
@@ -221,6 +222,7 @@ static void ParseProgName(SmallVectorImpl<const ch
|
|
|
|
{ "clang-g++", "--driver-mode=g++" },
|
|
|
|
{ "clang-gcc", 0 },
|
|
|
|
{ "clang-cl", "--driver-mode=cl" },
|
|
|
|
+ { "CC", "--driver-mode=g++" },
|
|
|
|
{ "cc", 0 },
|
|
|
|
{ "cpp", "--driver-mode=cpp" },
|
|
|
|
{ "cl" , "--driver-mode=cl" },
|