From: Debian Rust Maintainers Date: Sat, 18 Sep 2021 10:45:21 +0000 (+0100) Subject: u-dont-install-libllvm X-Git-Tag: archive/raspbian/1.50.0+dfsg1-1+rpi1^2~21 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a30c44c052222442555978b07d8522459825da18;p=rustc.git u-dont-install-libllvm Bug: https://github.com/rust-lang/rust/issues/78932 Gbp-Pq: Name u-dont-install-libllvm.patch --- diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 871a175091..7dd4684ff1 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -1812,7 +1812,8 @@ fn add_env(builder: &Builder<'_>, cmd: &mut Command, target: TargetSelection) { /// Note: This function does not yet support Windows, but we also don't support /// linking LLVM tools dynamically on Windows yet. fn maybe_install_llvm(builder: &Builder<'_>, target: TargetSelection, dst_libdir: &Path) { - if !builder.config.llvm_link_shared { + // Debian does not need to install this + if true { // We do not need to copy LLVM files into the sysroot if it is not // dynamically linked; it is already included into librustc_llvm // statically.