From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] [RFC] Dealing with default upstream Rust flags (?)
Date: Sat, 09 Nov 2024 17:45:54 +0100 [thread overview]
Message-ID: <70781f1308cd370f762732053220083c8f734431.camel@gentoo.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 892 bytes --]
Hi,
Long story short, a lot of Rust upstreams are ricing in their
Cargo.toml: enabling LTO, adjusting LTO jobs to exactly 1, and even
weirder stuff. With C, we generally have clear policies to override
this and respect user flags. With Rust, things aren't that clear.
Say, let's look at fractal:
[profile.release]
debug = true
lto = "thin"
codegen-units = 1
Upstream is enabling LTO with 1 job (i.e. single threaded) to squeeze
as much as they can from it. Also, they are enabling debug symbols for
some reason. As a result, the build takes 45 minutes, if it doesn't OOM
first.
How much of that stuff should we respect? Or should we perhaps override
it all? Should we do some special magic via eclass, or perhaps expect
users to set specific RUSTFLAGS for that? Perhaps set default RUSTFLAGS
in the profiles?
--
Best regards,
Michał Górny
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 512 bytes --]
next reply other threads:[~2024-11-09 16:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-09 16:45 Michał Górny [this message]
2024-11-09 23:28 ` [gentoo-dev] [RFC] Dealing with default upstream Rust flags (?) James Le Cuirot
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=70781f1308cd370f762732053220083c8f734431.camel@gentoo.org \
--to=mgorny@gentoo.org \
--cc=gentoo-dev@lists.gentoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox