View previous topic :: View next topic |
Author |
Message |
atlanticat n00b
Joined: 20 Aug 2022 Posts: 13
|
Posted: Fri Jul 05, 2024 3:32 am Post subject: Compiling improvements |
|
|
Can Gentoo's compiler be switched to another compiler to speed up installations?
I know there is a fix to make Gentoo use all cores (EMERGE_DEFAULT_OPTS and MAKEOPTS) and another fix to have a server compile the code (distcc). |
|
Back to top |
|
|
kimchi_sg Advocate
Joined: 26 Nov 2004 Posts: 3038
|
Posted: Fri Jul 05, 2024 10:19 am Post subject: Re: Compiling improvements |
|
|
atlanticat wrote: | Can Gentoo's compiler be switched to another compiler to speed up installations? |
If you look at the downloads page, you have a choice of GCC or LLVM+clang as default compiler in the stage 3 image at least for amd64.
Whether changing compiler will speed up anything is another story.
atlanticat wrote: |
I know there is a fix to make Gentoo use all cores (EMERGE_DEFAULT_OPTS and MAKEOPTS) |
They are options in make.conf file not "fixes".
atlanticat wrote: |
and another fix to have a server compile the code (distcc). |
The biggest "fix" is to compile on fast hardware. |
|
Back to top |
|
|
kimchi_sg Advocate
Joined: 26 Nov 2004 Posts: 3038
|
Posted: Fri Jul 05, 2024 10:45 am Post subject: clang |
|
|
for important differences between gcc and clang, please see wiki:
https://wiki.gentoo.org/wiki/Clang
not understanding them may break your system. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5091 Location: Bavaria
|
|
Back to top |
|
|
|