diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs index 483816b98d689e34594df52e9a688017d4c2706b..1769899a6cd01e01f1f30529a67719e87866f5a5 100644 --- a/src/bootstrap/config.rs +++ b/src/bootstrap/config.rs @@ -792,8 +792,16 @@ pub fn parse(args: &[String]) -> Config { // CI-built LLVM can be either dynamic or static. let ci_llvm = config.out.join(&*config.build.triple).join("ci-llvm"); - let link_type = t!(std::fs::read_to_string(ci_llvm.join("link-type.txt"))); - config.llvm_link_shared = link_type == "dynamic"; + config.llvm_link_shared = if config.dry_run { + // just assume dynamic for now + true + } else { + let link_type = t!( + std::fs::read_to_string(ci_llvm.join("link-type.txt")), + format!("CI llvm missing: {}", ci_llvm.display()) + ); + link_type == "dynamic" + }; } if config.llvm_thin_lto {