From: Efraim Flashner <efraim@flashner.co.il>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 49569@debbugs.gnu.org
Subject: [bug#49569] [PATCH] gnu: Add make-single-arch-llvm procedure.
Date: Tue, 27 Jul 2021 15:29:29 +0300 [thread overview]
Message-ID: <YP/8KUHlPKBdEutc@3900XT> (raw)
In-Reply-To: <87a6m981kd.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1731 bytes --]
On Mon, Jul 26, 2021 at 06:47:14PM +0200, Ludovic Courtès wrote:
> Hi,
>
> Efraim Flashner <efraim@flashner.co.il> skribis:
>
> > * gnu/packages/llvm.scm (make-single-arch-llvm): New procedure.
> > (llvm-native-12, llvm-native): New variables.
> > ---
> >
> > Using this copy of llvm for packages like mesa will reduce the closure
> > of those packages. I don't suppose it would work as well for compilers
> > like rust which use LLVM for compiling and targeting different
> > architectures.
> >
> > This drops the size of llvm-12 from 167M to 111M.
>
> That’s less impressive than I would have thought.
>
> For Mesa perhaps we could maybe have a variant that’s even more
> stripped?
>
> The downside of this is that we risk having several LLVM copies on
> typical installations.
>
> Thoughts?
>
> Thanks,
> Ludo’.
I think you're mostly shocked by the large numbers, it is a drop of 33%.
It turns out that llvm-julia uses something similar to only target one
arch, so the idea's there somewhere. We could probably add it in there
too for dlang. Icecat/icedove/mozjs-78 should be OK to switch. And
xf86-video-vmware already has mesa as an input and could likely use a
special llvm-for-mesa version.
I can look at mesa and see which libraries from llvm it links to and see
about just building those. A first look shows 50 llvm libraries from
mesa and about 150 from llvm@11, with the 4 libraries being
libOSMesa libvulkan_radeon libxatracker libXvMCnouveau
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2021-07-27 12:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-15 10:04 [bug#49569] [PATCH] gnu: Add make-single-arch-llvm procedure Efraim Flashner
2021-07-26 16:47 ` Ludovic Courtès
2021-07-27 12:29 ` Efraim Flashner [this message]
2021-07-27 17:10 ` Ludovic Courtès
2023-01-30 18:12 ` bug#49569: " Efraim Flashner
2021-07-27 13:09 ` [bug#49569] " Thiago Jung Bauermann via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YP/8KUHlPKBdEutc@3900XT \
--to=efraim@flashner.co.il \
--cc=49569@debbugs.gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.