Hi, 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.
This is related to my GSoC project: to use clang as the native compiler in Gentoo. While putting "CC=clang" in make.defaults could make portage use clang, symlinking cc/c++ to clang allows build tools like GNU Make and CMake to also use clang as the default compiler, making it feel more "native". This module should be orthogonal to gcc-config. It just switches between gcc, clang or whatever compiler, and doesn't care what version of gcc is in use. Currently gcc, clang and icc are supported in my implementation. Another two programs that might be of interest are /usr/bin/{c89,c99}. Currently they are just scripts that invoke gcc with proper "-std=..." option. I'm not sure if any build tools use them instead of cc. In that case, they probably should be handled by `eselect compiler` as well. A side note: actually there's a small issue with GNU make and I'm trying to fix it. Please refer to https://bugs.gentoo.org/show_bug.cgi?id=589894 and https://github.com/gentoo/gentoo/pull/1982 Lei
compiler.eselect
Description: Binary data