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

Chad Rosier mcrosier at apple.com
Mon Nov 26 09:50:39 PST 2012


Dimitry,
Sorry for the belated response; I've had limited connectivity over the break.

Please include a test case.  Otherwise, LGTM.

 Chad

On Nov 11, 2012, at 10:11 AM, Dimitry Andric <dimitry at andric.com> wrote:

> 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
> <clang-progname-CC-1.diff>_______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list