]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/lib.rs
Bootstrap: change logic for choosing linker and rpath
[rust.git] / src / bootstrap / lib.rs
index 39d7ea922bceda50770772869345adc83364b440..09e3bb5e231eecc8a001cf6496fc15891dc2dab2 100644 (file)
@@ -806,11 +806,8 @@ fn linker(&self, target: Interned<String>) -> Option<&Path> {
                                                        .and_then(|c| c.linker.as_ref()) {
             Some(linker)
         } else if target != self.config.build &&
-                  !target.contains("msvc") &&
-                  !target.contains("emscripten") &&
-                  !target.contains("wasm32") &&
-                  !target.contains("nvptx") &&
-                  !target.contains("fuchsia") {
+                  util::use_host_linker(&target) &&
+                  !target.contains("msvc") {
             Some(self.cc(target))
         } else {
             None