[cfe-commits] [patch] Interpret progname 'CC' as C++ compiler

Dimitry Andric dimitry at andric.com
Sun Nov 11 10:11:54 PST 2012


Hi,

As part of making clang the default system compiler for FreeBSD, it
turned out there are quite a few programs out there, which assume 'CC'
is a C++ compiler.  In FreeBSD, we always had a link from /usr/bin/g++
to /usr/bin/CC for that purpose.

Clang already recognizes a number of different program names, and
deduces the correct behaviour from them.  I would like to propose adding
'CC' and 'clang-CC' to the list.

The only possible issue I can see with this is with case-insensitive
filesystems, but even those usually preserve case.  (And then you would
not be able to have both 'cc' and 'CC' in one directory anyway...)

-Dimitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-progname-CC-1.diff
Type: text/x-diff
Size: 660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121111/67bfca27/attachment.diff>


More information about the cfe-commits mailing list