]> git.lizzy.rs Git - rust.git/commitdiff
Don't use a whitelist for use_lld
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Wed, 29 Jan 2020 17:05:26 +0000 (18:05 +0100)
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Wed, 29 Jan 2020 17:05:36 +0000 (18:05 +0100)
src/bootstrap/lib.rs

index 9755222410357cdd8e4b872b1c792b8ebe2e6627..5e4bedbeb28f2d4a885acc22cad2d2fcf8fc23dd 100644 (file)
@@ -829,11 +829,7 @@ fn linker(&self, target: Interned<String>, can_use_lld: bool) -> Option<&Path> {
             && !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