Date: Fri, 25 Oct 2013 09:09:00 +0000 (UTC) From: Steven Hartland <smh@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r257109 - head/contrib/llvm/tools/clang/tools/driver Message-ID: <201310250909.r9P990nk083926@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 },
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310250909.r9P990nk083926>