u-dont-install-libllvm
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sun, 20 Dec 2020 18:52:10 +0000 (18:52 +0000)
committerXimin Luo <infinity0@debian.org>
Sun, 20 Dec 2020 18:52:10 +0000 (18:52 +0000)
Bug: https://github.com/rust-lang/rust/issues/78932

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

src/bootstrap/dist.rs

index b2a590307a203f8d207faf96f23b06cd3f9aac62..d570180e9554a3b93786a01bd32934b857cc7456 100644 (file)
@@ -2370,7 +2370,8 @@ impl Step for HashSign {
 /// 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.