From: | Lei Zhang <zhanglei.april@×××××.com> | ||
---|---|---|---|
To: | gentoo-dev@l.g.o | ||
Subject: | Re: [gentoo-dev] [RFC] new eselect module: compiler | ||
Date: | Wed, 10 Aug 2016 01:09:22 | ||
Message-Id: | CAOYuCc2gjYJ-p1ieXGMKwpCFG25jKtd4V3=giGB7mskU8uH6_g@mail.gmail.com | ||
In Reply to: | Re: [gentoo-dev] [RFC] new eselect module: compiler by Zac Medico |
1 | 2016-08-10 0:16 GMT+08:00 Zac Medico <zmedico@g.o>: |
2 | > I'm guessing you Darwin folks don't compile many Linux kernels? The last |
3 | > I heard, clang is not yet a drop-in replacement for gcc when building |
4 | > the Linux kernel: |
5 | > |
6 | > http://llvm.linuxfoundation.org/index.php/Main_Page |
7 | |
8 | Yes, Linux kernel has to be built by gcc at the moment. Last time I |
9 | checked it, the kernel source is hardcoded to use gcc, so changing cc |
10 | won't affect it. |
11 | |
12 | Other than the kernel, non-gcc compilers should work just fine in |
13 | userland. FWIW, I've tried rebuilding @world with clang on my host; |
14 | only two packages failed and they are very easy to fix [1]. |
15 | |
16 | |
17 | [1] https://blogs.gentoo.org/gsoc2016-native-clang/2016/07/24/a-new-gentoo-stage4-musl-clang/ |
18 | |
19 | Lei |