svn commit: r259012 - stable/9/contrib/llvm/tools/clang/tools/driver

Dimitry Andric dim at FreeBSD.org
Thu Dec 5 21:51:53 UTC 2013


Author: dim
Date: Thu Dec  5 21:51:53 2013
New Revision: 259012
URL: http://svnweb.freebsd.org/changeset/base/259012

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
  Reviewed by:	dwhite, wca

Modified:
  stable/9/contrib/llvm/tools/clang/tools/driver/driver.cpp
Directory Properties:
  stable/9/contrib/llvm/   (props changed)
  stable/9/contrib/llvm/tools/clang/   (props changed)

Modified: stable/9/contrib/llvm/tools/clang/tools/driver/driver.cpp
==============================================================================
--- stable/9/contrib/llvm/tools/clang/tools/driver/driver.cpp	Thu Dec  5 21:49:41 2013	(r259011)
+++ stable/9/contrib/llvm/tools/clang/tools/driver/driver.cpp	Thu Dec  5 21:51:53 2013	(r259012)
@@ -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-9 mailing list