2016-08-06 21:45 GMT+08:00 James Le Cuirot <ch...@gentoo.org>: > On Thu, 28 Jul 2016 13:16:45 +0800 > Lei Zhang <zhanglei.ap...@gmail.com> wrote: > >> I'm proposing to offer a new eselect module "compiler". Briefly >> speaking, it manages /usr/bin/{cc,c++} as symlinks to C/C++ compilers >> specified by the user. > > I'm not on the toolchain team so I cannot comment much but be aware > that there was previously an eselect module called "compiler". It was > removed in 2007 because it did silly things. See this bug. > > https://bugs.gentoo.org/show_bug.cgi?id=199914 > > I'm not suggesting that your version does silly things. :) I don't know > how practical is it to swap "cc" with something other than gcc as I've > never tried clang.
"cc" is the standard C compiler name defined in POSIX, so ideally any gcc-agnostic programs should use "cc" instead of "gcc". Practically, build tools like GNU Make and CMake would be affected as they use "cc" implicitly. OTOH, POSIX doesn't require the presence of C++ compiler on a conformant system; "c++' is just a de facto standard. Lei