about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2020-09-14 16:22:56 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2020-09-15 10:22:02 -0400
commitf001a0c8dd074ae46276ce84c3de6a6072e77015 (patch)
tree2ff98e153922edcdfff2f5c9d562c47b02e22ab2 /compiler/rustc_codegen_llvm/src
parent90b1f5ae59291dd69d72fad41a22277df19dc953 (diff)
downloadrust-f001a0c8dd074ae46276ce84c3de6a6072e77015.tar.gz
rust-f001a0c8dd074ae46276ce84c3de6a6072e77015.zip
Enable shared linking to LLVM on non-Windows
Windows doesn't quite support dynamic linking to LLVM yet, but on other
platforms we do. In #76708, it was discovered that we dynamically link to LLVM
from the LLVM tools (e.g., rust-lld), so we need the shared LLVM library to link
against. That means that if we do not have a shared link to LLVM, and want LLVM
tools to work, we'd be shipping two copies of LLVM on all of these platforms:
one in librustc_driver and one in libLLVM.

Also introduce an error into rustbuild if we do end up configured for shared
linking on Windows.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions