summaryrefslogtreecommitdiff
path: root/dev-lang/rust/files/rust-1.86.0-issue-139372-bgo-953956-fix-hardcoded-gnu-linker-flags.patch
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2025-06-10 20:18:07 +0300
committerJoonas Niilola <juippis@gentoo.org>2025-06-10 20:18:07 +0300
commit9dd4853cd6c55934e3b13a019be3d62fe5c6d1ea (patch)
tree0c279e579fc73a5ff801ede20015026b315929d3 /dev-lang/rust/files/rust-1.86.0-issue-139372-bgo-953956-fix-hardcoded-gnu-linker-flags.patch
parent3d1d4531d54d00c793caf63110b85f08f46fe48f (diff)
downloadgentoo-9dd4853cd6c55934e3b13a019be3d62fe5c6d1ea.tar.gz
gentoo-9dd4853cd6c55934e3b13a019be3d62fe5c6d1ea.tar.bz2
gentoo-9dd4853cd6c55934e3b13a019be3d62fe5c6d1ea.zip
dev-lang/rust: fix building '+wasm' on clang/lld system on 1.86.0
Closes: https://bugs.gentoo.org/953956 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-lang/rust/files/rust-1.86.0-issue-139372-bgo-953956-fix-hardcoded-gnu-linker-flags.patch')
-rw-r--r--dev-lang/rust/files/rust-1.86.0-issue-139372-bgo-953956-fix-hardcoded-gnu-linker-flags.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/dev-lang/rust/files/rust-1.86.0-issue-139372-bgo-953956-fix-hardcoded-gnu-linker-flags.patch b/dev-lang/rust/files/rust-1.86.0-issue-139372-bgo-953956-fix-hardcoded-gnu-linker-flags.patch
new file mode 100644
index 000000000000..11d7738f2ee1
--- /dev/null
+++ b/dev-lang/rust/files/rust-1.86.0-issue-139372-bgo-953956-fix-hardcoded-gnu-linker-flags.patch
@@ -0,0 +1,18 @@
+diff '--color=auto' -Nuar rustc-1.86.0-src.orig/src/bootstrap/src/utils/helpers.rs rustc-1.86.0-src/src/bootstrap/src/utils/helpers.rs
+--- rustc-1.86.0-src.orig/src/bootstrap/src/utils/helpers.rs 2025-03-31 22:37:24.000000000 +0100
++++ rustc-1.86.0-src/src/bootstrap/src/utils/helpers.rs 2025-04-17 12:31:37.651607535 +0100
+@@ -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());