From dcc3554c62d611ab5b9182f11a4954294832365b Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 15 Apr 2022 16:51:09 +0200 Subject: [PATCH] Respect ranlib specified for target during LLVM build The ranlib specified for the target was never actually transferred into the builder configuration. In the dist-x86_64-linux build we ended up using ranlib instead of llvm-ranlib. --- src/bootstrap/cc_detect.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bootstrap/cc_detect.rs b/src/bootstrap/cc_detect.rs index 7ce44687611..dca782c29c2 100644 --- a/src/bootstrap/cc_detect.rs +++ b/src/bootstrap/cc_detect.rs @@ -149,6 +149,10 @@ pub fn find(build: &mut Build) { build.verbose(&format!("AR_{} = {:?}", &target.triple, ar)); build.ar.insert(target, ar); } + + if let Some(ranlib) = config.and_then(|c| c.ranlib.clone()) { + build.ranlib.insert(target, ranlib); + } } }