public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Matt Jolly" <kangie@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/rust-patches:1.86.0-r2-1 commit in: /
Date: Tue, 29 Jul 2025 06:39:51 +0000 (UTC)	[thread overview]
Message-ID: <1753771163.05e5a2093ac8d4d9a0f77b97f960cffe0a492673.kangie@gentoo> (raw)

commit:     05e5a2093ac8d4d9a0f77b97f960cffe0a492673
Author:     Matt Jolly <kangie <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 29 06:18:31 2025 +0000
Commit:     Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Tue Jul 29 06:39:23 2025 +0000
URL:        https://gitweb.gentoo.org/proj/rust-patches.git/commit/?id=05e5a209

Add 1.86.0 linker flags fix

This was committed to ::gentoo; it should have ended up here.

Signed-off-by: Matt Jolly <kangie <AT> gentoo.org>

 1.86.0-fix-hardcoded-gnu-linker-flags.patch | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/1.86.0-fix-hardcoded-gnu-linker-flags.patch b/1.86.0-fix-hardcoded-gnu-linker-flags.patch
new file mode 100644
index 0000000..e3adf9f
--- /dev/null
+++ b/1.86.0-fix-hardcoded-gnu-linker-flags.patch
@@ -0,0 +1,19 @@
+https://github.com/rust-lang/rust/commit/bad6b7bad6491790184c42579b9bacdbd580dd3e
+See-also: https://bugs.gentoo.org/953956
+--- a/src/bootstrap/src/utils/helpers.rs
++++ b/src/bootstrap/src/utils/helpers.rs
+@@ -451,12 +451,12 @@
+     if !builder.is_lld_direct_linker(target) && builder.config.lld_mode.is_used() {
+         match builder.config.lld_mode {
+             LldMode::External => {
+-                args.push("-Clinker-flavor=gnu-lld-cc".to_string());
++                args.push("-Zlinker-features=+lld".to_string());
+                 // FIXME(kobzol): remove this flag once MCP510 gets stabilized
+                 args.push("-Zunstable-options".to_string());
+             }
+             LldMode::SelfContained => {
+-                args.push("-Clinker-flavor=gnu-lld-cc".to_string());
++                args.push("-Zlinker-features=+lld".to_string());
+                 args.push("-Clink-self-contained=+linker".to_string());
+                 // FIXME(kobzol): remove this flag once MCP510 gets stabilized
+                 args.push("-Zunstable-options".to_string());


WARNING: multiple messages have this Message-ID (diff)
From: "Matt Jolly" <kangie@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/rust-patches:1.86 commit in: /
Date: Tue, 29 Jul 2025 06:39:45 +0000 (UTC)	[thread overview]
Message-ID: <1753771163.05e5a2093ac8d4d9a0f77b97f960cffe0a492673.kangie@gentoo> (raw)
Message-ID: <20250729063945.nPukPGfZ2-gd4_ASa8rMm7MD3VJzCgjrjZ6u2btd1zk@z> (raw)

commit:     05e5a2093ac8d4d9a0f77b97f960cffe0a492673
Author:     Matt Jolly <kangie <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 29 06:18:31 2025 +0000
Commit:     Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Tue Jul 29 06:39:23 2025 +0000
URL:        https://gitweb.gentoo.org/proj/rust-patches.git/commit/?id=05e5a209

Add 1.86.0 linker flags fix

This was committed to ::gentoo; it should have ended up here.

Signed-off-by: Matt Jolly <kangie <AT> gentoo.org>

 1.86.0-fix-hardcoded-gnu-linker-flags.patch | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/1.86.0-fix-hardcoded-gnu-linker-flags.patch b/1.86.0-fix-hardcoded-gnu-linker-flags.patch
new file mode 100644
index 0000000..e3adf9f
--- /dev/null
+++ b/1.86.0-fix-hardcoded-gnu-linker-flags.patch
@@ -0,0 +1,19 @@
+https://github.com/rust-lang/rust/commit/bad6b7bad6491790184c42579b9bacdbd580dd3e
+See-also: https://bugs.gentoo.org/953956
+--- a/src/bootstrap/src/utils/helpers.rs
++++ b/src/bootstrap/src/utils/helpers.rs
+@@ -451,12 +451,12 @@
+     if !builder.is_lld_direct_linker(target) && builder.config.lld_mode.is_used() {
+         match builder.config.lld_mode {
+             LldMode::External => {
+-                args.push("-Clinker-flavor=gnu-lld-cc".to_string());
++                args.push("-Zlinker-features=+lld".to_string());
+                 // FIXME(kobzol): remove this flag once MCP510 gets stabilized
+                 args.push("-Zunstable-options".to_string());
+             }
+             LldMode::SelfContained => {
+-                args.push("-Clinker-flavor=gnu-lld-cc".to_string());
++                args.push("-Zlinker-features=+lld".to_string());
+                 args.push("-Clink-self-contained=+linker".to_string());
+                 // FIXME(kobzol): remove this flag once MCP510 gets stabilized
+                 args.push("-Zunstable-options".to_string());


             reply	other threads:[~2025-07-29  6:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-29  6:39 Matt Jolly [this message]
2025-07-29  6:39 ` [gentoo-commits] proj/rust-patches:1.86 commit in: / Matt Jolly
  -- strict thread matches above, loose matches on Subject: below --
2025-07-29  6:38 Matt Jolly
2025-07-29  6:38 ` [gentoo-commits] proj/rust-patches:1.86.0-r2-1 " Matt Jolly
2025-07-29  6:23 [gentoo-commits] proj/rust-patches:1.86 " Matt Jolly
2025-07-29  6:24 ` [gentoo-commits] proj/rust-patches:1.86.0-r2-1 " Matt Jolly

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=1753771163.05e5a2093ac8d4d9a0f77b97f960cffe0a492673.kangie@gentoo \
    --to=kangie@gentoo.org \
    --cc=gentoo-commits@lists.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