Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit dcc3554

Browse files
committed
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.
1 parent 461e807 commit dcc3554

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/cc_detect.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ pub fn find(build: &mut Build) {
149149
build.verbose(&format!("AR_{} = {:?}", &target.triple, ar));
150150
build.ar.insert(target, ar);
151151
}
152+
153+
if let Some(ranlib) = config.and_then(|c| c.ranlib.clone()) {
154+
build.ranlib.insert(target, ranlib);
155+
}
152156
}
153157
}
154158

0 commit comments

Comments
 (0)