about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-22 20:35:45 +0000
committerbors <bors@rust-lang.org>2020-09-22 20:35:45 +0000
commit0da58007451a154da2480160429e1604a1f5f0ec (patch)
tree384aa61fb969f1c432b7fb5985e359092aa4bf80 /compiler/rustc_resolve/src
parente0bc267512fc0cb49c86978192857e8187017f0b (diff)
parent389b7ff19074988a3855bbc5ba7b19eb903a6fb4 (diff)
downloadrust-0da58007451a154da2480160429e1604a1f5f0ec.tar.gz
rust-0da58007451a154da2480160429e1604a1f5f0ec.zip
Auto merge of #76810 - Mark-Simulacrum:fix-lld-macos, r=alexcrichton
Don't dynamically link LLVM tools unless rustc is too

This PR initially tried to support link-shared on all of our target platforms (other than Windows), but ran into a number of difficulties:
 * LLVM doesn't really support a shared link on macOS (llvm-config runs into problems with the version suffix)
 * LLVM doesn't seem to support a shared link when cross-compiling (the libLLVM.so ends up empty and symbols are not found)

So, this PR has now been revised such that we don't attempt to dynamically link LLVM tools (even if that would, otherwise, be supported) on targets where LLVM is statically linked to rustc. Currently that's basically everything except for x86_64-unknown-linux-gnu (where we dynamically link to avoid rerunning ThinLTO in each stage).

Follow-up to #76708.
Fixes #76698.
Diffstat (limited to 'compiler/rustc_resolve/src')
0 files changed, 0 insertions, 0 deletions