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

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

src/bootstrap/dist.rs

index 871a175091319c3df8f2d69162455ea85b85e8c9..7dd4684ff1ee1bcc7d8776683eb04736877773c8 100644 (file)
@@ -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.