Skip to content

Commit 2b5ac0b

Browse files
committed
fix after rebase
1 parent 89d5fde commit 2b5ac0b

File tree

1 file changed

+4
-4
lines changed
  • compiler/rustc_codegen_ssa/src/back

1 file changed

+4
-4
lines changed

compiler/rustc_codegen_ssa/src/back/link.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,9 +1419,9 @@ pub fn linker_and_flavor(
14191419
}
14201420

14211421
// When using a supported target in self-contained linker mode, we want to use rust-lld directly.
1422-
let self_contained_target = sess.target.os == "windows"
1423-
&& sess.target.env == "gnu"
1424-
&& sess.target.abi == "llvm"
1422+
let self_contained_target = sess.target.os == Os::Windows
1423+
&& sess.target.env == Env::Gnu
1424+
&& sess.target.abi == Abi::Llvm
14251425
&& self_contained_components.is_linker_enabled();
14261426
if self_contained_target
14271427
&& let Some(ret) =
@@ -1784,7 +1784,7 @@ fn detect_self_contained_mingw(sess: &Session) -> bool {
17841784
// Passing custom linker means non-self-contained mode.
17851785
if sess.opts.cg.linker.is_some() {
17861786
// Unless running on `-windows-gnu-llvm` and using `-C linker=rust-lld`.
1787-
if sess.target.abi == "llvm" {
1787+
if sess.target.abi == Abi::Llvm {
17881788
return sess
17891789
.opts
17901790
.cg

0 commit comments

Comments
 (0)