2014-03-18 22:07:45 +00:00
|
|
|
This patch adds "CC" and "clang-CC" to the list of program name aliases which
|
|
|
|
invoke the C++ compiler.
|
|
|
|
|
2014-05-24 22:27:31 +00:00
|
|
|
Introduced here: http://svnweb.freebsd.org/changeset/base/257109
|
2014-03-18 22:07:45 +00:00
|
|
|
|
|
|
|
Index: tools/clang/tools/driver/driver.cpp
|
|
|
|
===================================================================
|
|
|
|
--- tools/clang/tools/driver/driver.cpp
|
|
|
|
+++ tools/clang/tools/driver/driver.cpp
|
2014-11-24 18:43:37 +00:00
|
|
|
@@ -217,11 +217,13 @@ static void ParseProgName(SmallVectorImpl<const ch
|
|
|
|
{ "clang", nullptr },
|
2014-03-18 22:07:45 +00:00
|
|
|
{ "clang++", "--driver-mode=g++" },
|
|
|
|
{ "clang-c++", "--driver-mode=g++" },
|
2014-11-24 18:43:37 +00:00
|
|
|
+ { "clang-CC", "--driver-mode=g++" },
|
|
|
|
{ "clang-cc", nullptr },
|
2014-03-18 22:07:45 +00:00
|
|
|
{ "clang-cpp", "--driver-mode=cpp" },
|
|
|
|
{ "clang-g++", "--driver-mode=g++" },
|
2014-11-24 18:43:37 +00:00
|
|
|
{ "clang-gcc", nullptr },
|
2014-03-18 22:07:45 +00:00
|
|
|
{ "clang-cl", "--driver-mode=cl" },
|
|
|
|
+ { "CC", "--driver-mode=g++" },
|
2014-11-24 18:43:37 +00:00
|
|
|
{ "cc", nullptr },
|
2014-03-18 22:07:45 +00:00
|
|
|
{ "cpp", "--driver-mode=cpp" },
|
|
|
|
{ "cl" , "--driver-mode=cl" },
|