1 |
Hi, |
2 |
|
3 |
I'm proposing to offer a new eselect module "compiler". Briefly |
4 |
speaking, it manages /usr/bin/{cc,c++} as symlinks to C/C++ compilers |
5 |
specified by the user. |
6 |
|
7 |
This is related to my GSoC project: to use clang as the native |
8 |
compiler in Gentoo. While putting "CC=clang" in make.defaults could |
9 |
make portage use clang, symlinking cc/c++ to clang allows build tools |
10 |
like GNU Make and CMake to also use clang as the default compiler, |
11 |
making it feel more "native". |
12 |
|
13 |
This module should be orthogonal to gcc-config. It just switches |
14 |
between gcc, clang or whatever compiler, and doesn't care what version |
15 |
of gcc is in use. Currently gcc, clang and icc are supported in my |
16 |
implementation. |
17 |
|
18 |
Another two programs that might be of interest are /usr/bin/{c89,c99}. |
19 |
Currently they are just scripts that invoke gcc with proper "-std=..." |
20 |
option. I'm not sure if any build tools use them instead of cc. In |
21 |
that case, they probably should be handled by `eselect compiler` as |
22 |
well. |
23 |
|
24 |
A side note: actually there's a small issue with GNU make and I'm |
25 |
trying to fix it. Please refer to |
26 |
https://bugs.gentoo.org/show_bug.cgi?id=589894 and |
27 |
https://github.com/gentoo/gentoo/pull/1982 |
28 |
|
29 |
|
30 |
Lei |