From 129ff386d784e3d27f003a7b4a86e45470ef3650 Mon Sep 17 00:00:00 2001 From: Debian Rust Maintainers Date: Tue, 29 Mar 2022 12:23:46 +0100 Subject: [PATCH] u-rustc-llvm-cross-flags Gbp-Pq: Name u-rustc-llvm-cross-flags.patch --- compiler/rustc_llvm/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs index 9b23f8a87..95671df4b 100644 --- a/compiler/rustc_llvm/build.rs +++ b/compiler/rustc_llvm/build.rs @@ -237,7 +237,7 @@ fn main() { if let Some(stripped) = lib.strip_prefix("-LIBPATH:") { println!("cargo:rustc-link-search=native={}", stripped.replace(&host, &target)); } else if let Some(stripped) = lib.strip_prefix("-L") { - println!("cargo:rustc-link-search=native={}", stripped.replace(&host, &target)); + if stripped.contains(&host) { println!("cargo:rustc-link-search=native={}", stripped.replace(&host, &target)); } } } else if let Some(stripped) = lib.strip_prefix("-LIBPATH:") { println!("cargo:rustc-link-search=native={}", stripped); -- 2.30.2