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>2023-06-21 21:46:36 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2023-06-30 21:01:38 +0000
commit0fb80715bbf2ee63e17f3cf65fc60a3db8768e18 (patch)
treeef51665fc8710855640230c9ceccc988bf2057b9 /compiler/rustc_codegen_ssa/src
parent5d91c1ced4d09472b7d355cb075495e38727f26b (diff)
downloadrust-0fb80715bbf2ee63e17f3cf65fc60a3db8768e18.tar.gz
rust-0fb80715bbf2ee63e17f3cf65fc60a3db8768e18.zip
use `LinkSelfContained` for `-C link-self-contained`
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 557b120b2c8..7e839520dfe 100644
--- a/compiler/rustc_codegen_ssa/src/back/link.rs
+++ b/compiler/rustc_codegen_ssa/src/back/link.rs
@@ -1688,7 +1688,7 @@ fn detect_self_contained_mingw(sess: &Session) -> bool {
 /// instead of being found somewhere on the host system.
 /// We only provide such support for a very limited number of targets.
 fn self_contained(sess: &Session, crate_type: CrateType) -> bool {
-    if let Some(self_contained) = sess.opts.cg.link_self_contained {
+    if let Some(self_contained) = sess.opts.cg.link_self_contained.explicitly_set {
         if sess.target.link_self_contained == LinkSelfContainedDefault::False {
             sess.emit_err(errors::UnsupportedLinkSelfContained);
         }