svn commit: r257109 - head/contrib/llvm/tools/clang/tools/driver
Steven Hartland
smh at FreeBSD.org
Fri Oct 25 09:09:01 UTC 2013
Author: smh
Date: Fri Oct 25 09:09:00 2013
New Revision: 257109
URL: http://svnweb.freebsd.org/changeset/base/257109
Log:
Add clang-CC and CC to list of hints allowing clang to identify its operating
mode as c++ instead of defaulting to c for the binary names CC and clang-CC.
This fixes builds that use cmake, which automatically sets CXX to
/usr/bin/CC by default.
PR: bin/182442
Reviewed by: dwhite, wca
MFC after: 2 days
Modified:
head/contrib/llvm/tools/clang/tools/driver/driver.cpp
Modified: head/contrib/llvm/tools/clang/tools/driver/driver.cpp
==============================================================================
--- head/contrib/llvm/tools/clang/tools/driver/driver.cpp Fri Oct 25 08:41:36 2013 (r257108)
+++ head/contrib/llvm/tools/clang/tools/driver/driver.cpp Fri Oct 25 09:09:00 2013 (r257109)
@@ -284,11 +284,13 @@ static void ParseProgName(SmallVectorImp
} suffixes [] = {
{ "clang", false, false },
{ "clang++", true, false },
+ { "clang-CC", true, false },
{ "clang-c++", true, false },
{ "clang-cc", false, false },
{ "clang-cpp", false, true },
{ "clang-g++", true, false },
{ "clang-gcc", false, false },
+ { "CC", true, false },
{ "cc", false, false },
{ "cpp", false, true },
{ "++", true, false },
More information about the svn-src-all
mailing list