Re: [gentoo-dev] [RFC] new eselect module: compiler

2016-08-10 Thread Fabian Groffen
On 10-08-2016 08:39:26 +0800, Lei Zhang wrote: > 2016-08-09 13:58 GMT+08:00 Fabian Groffen : > > As a question to Lei, I'm wondering why you chose eselect compiler, and > > not gcc-config to manage the links. In a way, gcc-config is tailored > > towards gcc, but it does a lot

Re: [gentoo-dev] [RFC] new eselect module: compiler

2016-08-09 Thread M. J. Everitt
On 10/08/16 06:08, Michał Górny wrote: > On Wed, 10 Aug 2016 01:52:29 +0100 > "M. J. Everitt" wrote: > >> On 10/08/16 01:39, Lei Zhang wrote: >>> 2016-08-09 13:58 GMT+08:00 Fabian Groffen : As a question to Lei, I'm wondering why you chose eselect

Re: [gentoo-dev] [RFC] new eselect module: compiler

2016-08-09 Thread Michał Górny
On Wed, 10 Aug 2016 01:52:29 +0100 "M. J. Everitt" wrote: > On 10/08/16 01:39, Lei Zhang wrote: > > 2016-08-09 13:58 GMT+08:00 Fabian Groffen : > >> As a question to Lei, I'm wondering why you chose eselect compiler, and > >> not gcc-config to manage the

Re: [gentoo-dev] [RFC] new eselect module: compiler

2016-08-09 Thread Benda Xu
Lei Zhang writes: > I'm just afraid gcc-config would become too complex that way, so I > prefer a simpler approach: let eselect-compiler be version-agnostic. > Then we can have clang-config to handle the versioning of clang, > icc-config to handle icc, etc. If we model

Re: [gentoo-dev] [RFC] new eselect module: compiler

2016-08-09 Thread Lei Zhang
2016-08-10 0:16 GMT+08:00 Zac Medico : > I'm guessing you Darwin folks don't compile many Linux kernels? The last > I heard, clang is not yet a drop-in replacement for gcc when building > the Linux kernel: > > http://llvm.linuxfoundation.org/index.php/Main_Page Yes, Linux

Re: [gentoo-dev] [RFC] new eselect module: compiler

2016-08-09 Thread M. J. Everitt
On 10/08/16 01:39, Lei Zhang wrote: > 2016-08-09 13:58 GMT+08:00 Fabian Groffen : >> As a question to Lei, I'm wondering why you chose eselect compiler, and >> not gcc-config to manage the links. In a way, gcc-config is tailored >> towards gcc, but it does a lot of things also

Re: [gentoo-dev] [RFC] new eselect module: compiler

2016-08-09 Thread Zac Medico
On 08/08/2016 10:58 PM, Fabian Groffen wrote: > On 08-08-2016 13:45:07 -0500, R0b0t1 wrote: >> On Mon, Aug 8, 2016 at 11:23 AM, Lei Zhang wrote: >>> "cc" is the standard C compiler name defined in POSIX, so ideally any >>> gcc-agnostic programs should use "cc" instead of

Re: [gentoo-dev] [RFC] new eselect module: compiler

2016-08-09 Thread james
On 08/09/2016 12:58 AM, Fabian Groffen wrote: On 08-08-2016 13:45:07 -0500, R0b0t1 wrote: On Mon, Aug 8, 2016 at 11:23 AM, Lei Zhang wrote: "cc" is the standard C compiler name defined in POSIX, so ideally any gcc-agnostic programs should use "cc" instead of "gcc".

Re: [gentoo-dev] [RFC] new eselect module: compiler

2016-08-08 Thread Fabian Groffen
On 08-08-2016 13:45:07 -0500, R0b0t1 wrote: > On Mon, Aug 8, 2016 at 11:23 AM, Lei Zhang wrote: > > "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

Re: [gentoo-dev] [RFC] new eselect module: compiler

2016-08-08 Thread R0b0t1
On Mon, Aug 8, 2016 at 11:23 AM, Lei Zhang wrote: > "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" >

Re: [gentoo-dev] [RFC] new eselect module: compiler

2016-08-08 Thread Lei Zhang
2016-08-06 21:45 GMT+08:00 James Le Cuirot : > On Thu, 28 Jul 2016 13:16:45 +0800 > Lei Zhang 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 >>

Re: [gentoo-dev] [RFC] new eselect module: compiler

2016-08-06 Thread James Le Cuirot
On Thu, 28 Jul 2016 13:16:45 +0800 Lei Zhang 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

[gentoo-dev] [RFC] new eselect module: compiler

2016-07-27 Thread Lei Zhang
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