svn commit: r257327 - stable/10/contrib/llvm/tools/clang/tools/driver
Steven Hartland
smh at FreeBSD.org
Tue Oct 29 11:36:32 UTC 2013
Author: smh
Date: Tue Oct 29 11:36:31 2013
New Revision: 257327
URL: http://svnweb.freebsd.org/changeset/base/257327
Log:
MFC r257109:
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
Approved by: re (glebius)
Modified:
stable/10/contrib/llvm/tools/clang/tools/driver/driver.cpp
Directory Properties:
stable/10/contrib/llvm/tools/clang/ (props changed)
Modified: stable/10/contrib/llvm/tools/clang/tools/driver/driver.cpp
==============================================================================
--- stable/10/contrib/llvm/tools/clang/tools/driver/driver.cpp Tue Oct 29 11:28:11 2013 (r257326)
+++ stable/10/contrib/llvm/tools/clang/tools/driver/driver.cpp Tue Oct 29 11:36:31 2013 (r257327)
@@ -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-stable-10
mailing list