u-dont-install-libllvm
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sat, 28 Aug 2021 09:48:11 +0000 (10:48 +0100)
committerXimin Luo <infinity0@debian.org>
Sat, 28 Aug 2021 09:48:11 +0000 (10:48 +0100)
Bug: https://github.com/rust-lang/rust/issues/78932

Gbp-Pq: Name u-dont-install-libllvm.patch

src/bootstrap/dist.rs

index a72aa72828519c3118b2ee16f9ebc7d35364f2c0..f3183f9088e14af933be8e60d19a983900364e37 100644 (file)
@@ -2334,7 +2334,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.