a1f8ad145e
applied to our copy of llvm/clang. These can be applied in alphabetical order to a pristine llvm/clang 3.4 release source tree, to result in the same version used in FreeBSD. This is intended to clearly document all the changes until now, which mostly consist of cherry pickings from the respective upstream trunks, plus a number of hand-written FreeBSD-specific ones. Hopefully those can eventually be cleaned up and sent upstream too. MFC after: 1 week X-MFC-With: r263313
26 lines
1008 B
Diff
26 lines
1008 B
Diff
This patch adds "CC" and "clang-CC" to the list of program name aliases which
|
|
invoke the C++ compiler.
|
|
|
|
Introduced here: http://svn.freebsd.org/changeset/base/257109
|
|
|
|
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" },
|