public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Clang/LLVM profile
@ 2021-11-29  1:42 2b57
  2021-11-29  1:45 ` [gentoo-dev] " 2b57
  0 siblings, 1 reply; 4+ messages in thread
From: 2b57 @ 2021-11-29  1:42 UTC (permalink / raw
  To: gentoo-dev@lists.gentoo.org

[-- Attachment #1: Type: text/plain, Size: 1111 bytes --]

Hello all,

I'm in the middle of developing a proof-of-concept "native" Clang/LLVM profile – such, that stage3 built using this profile will not even contain GCC and binutils. Why? Well, because Clang is in pretty good shape lately, you can compile kernel and elfutils even. Also just for fun!

The approach I've decided to take is to create virtual/toolchain and virtual/binutils packages with RDEPEND attributes set to gcc || clang and binutils || llvm. I've reached a point where modifications to ::gentoo/scripts/bootstrap.sh are needed, and currently I've solved it with making an OverlayFS overlay, which combines both ::gentoo repo and my custom script. General idea is that once LLVM toolchain is in place (stage1), custom profile for stage2 masks gcc/binutils and virtuals get resolved by LLVM stuff. However, that is not the case; something goes wrong and it seems that binutils package is deeply embedded somewhere else...

Anyway, I'd appreciate any feedback and suggestions, since I'm sure I'm not the only one interested in this topic.

Grab the src here: https://github.com/2b57/toolchain-clang

[-- Attachment #2: Type: text/html, Size: 1293 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-29 13:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-29  1:42 [gentoo-dev] Clang/LLVM profile 2b57
2021-11-29  1:45 ` [gentoo-dev] " 2b57
2021-11-29  1:51   ` [gentoo-dev] " Sam James
2021-11-29 13:35     ` Andreas K. Huettel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox