diff options
| author | Jethro Beekman <jethro@fortanix.com> | 2019-12-09 09:46:55 +0100 |
|---|---|---|
| committer | Jethro Beekman <jethro@fortanix.com> | 2019-12-09 09:46:55 +0100 |
| commit | 786b9d0d626dfbf97e64cd113bbcca08f65c3ca9 (patch) | |
| tree | 7fbd22507884693a19ab097b5608782401d7132b /src/bootstrap/lib.rs | |
| parent | 2b0e6d2643e60651ef4b8c83beaf86dc4e62f359 (diff) | |
Bootstrap: change logic for choosing linker and rpath
Diffstat (limited to 'src/bootstrap/lib.rs')
| -rw-r--r-- | src/bootstrap/lib.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index 7ea2bb126a6..09e3bb5e231 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -806,12 +806,8 @@ impl Build { .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("fortanix") && - !target.contains("fuchsia") { + util::use_host_linker(&target) && + !target.contains("msvc") { Some(self.cc(target)) } else { None |
