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