[PATCH] Recognize "CC" and "clang-CC" as C++ compiler aliases on FreeBSD

Dimitry Andric dimitry at andric.com
Sun Jan 25 12:25:27 PST 2015


As far as I remember, it were certainly more than a few ports that depended on this.  Specifically, all ports that were dependent on CMake, since it defaulted to using "CC" for the default C++ compiler for a very long time.  This may have been fixed in recent versions of CMake, though.

The problem is that it is primarly historical software which uses CC as its C++ compiler name, and .C as its C++ file extension.  That software is very unlikely to get fixed, and it is annoying to force every user change the Makefiles, or whatever is used.

Last time I tried removing the CC alias from FreeBSD, it got added back in https://lists.freebsd.org/pipermail/svn-src-head/2013-October/052643.html after which the consensus seemed to be that it was better to keep it in, since so many old programs rely on it.  It's one of those things that is hard to get rid of...


http://reviews.llvm.org/D7164

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list