diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index 975522241035..5e4bedbeb28f 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -829,11 +829,7 @@ impl Build { && !target.contains("msvc") { Some(self.cc(target)) - } else if can_use_lld - && self.config.use_lld - && target.contains("pc-windows-msvc") - && self.build == target - { + } else if can_use_lld && self.config.use_lld && self.build == target { Some(&self.initial_lld) } else { None