about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2025-07-08 09:01:25 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2025-07-08 09:04:21 +0000
commit2e6d82c9c96348a2f7dafd1a3337287408fc9751 (patch)
tree407f868c43b74b5fcdca88329434e8125561934b /compiler/rustc_codegen_ssa/src
parentaa527115432df082f3c9e4d2459acb7bb02ed5a6 (diff)
downloadrust-2e6d82c9c96348a2f7dafd1a3337287408fc9751.tar.gz
rust-2e6d82c9c96348a2f7dafd1a3337287408fc9751.zip
stabilize `-Clinker-features=-lld` on x64 linux
This stabilizes a subset of the `-Clinker-features` components on x64 linux:
the lld opt-out.

The opt-in is not stabilized, as interactions with other stable flags require
more internal work, but are not needed for stabilizing using rust-lld by default.

Similarly, since we only switch to rust-lld on x64 linux, the opt-out is
only stabilized there. Other targets still require `-Zunstable-options`
to use it.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/link.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs
index 343cb0eeca9..34328687e3f 100644
--- a/compiler/rustc_codegen_ssa/src/back/link.rs
+++ b/compiler/rustc_codegen_ssa/src/back/link.rs
@@ -1379,7 +1379,7 @@ pub fn linker_and_flavor(sess: &Session) -> (PathBuf, LinkerFlavor) {
         }
     }
 
-    let features = sess.opts.unstable_opts.linker_features;
+    let features = sess.opts.cg.linker_features;
 
     // linker and linker flavor specified via command line have precedence over what the target
     // specification specifies