X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fbootstrap%2Fcc_detect.rs;h=dca782c29c252f72ac6087787ac559541ff28cd2;hb=fd9ca0c25ec90f6ed156e6f0e950763ca5171f8a;hp=7ce446876118af13244c4c914dc2dfcdf1ca525a;hpb=419df99e1824a5b65eb0c6d67850dfe014b019fa;p=rust.git 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); + } } }