Skip to content

Commit 2d13cda

Browse files
committed
turn off download-rustc if LLVM submodule has changes
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent 7a0e8bd commit 2d13cda

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/bootstrap/src/core/config/config.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,6 +2399,13 @@ impl Config {
23992399
Some(commit) => {
24002400
self.download_ci_rustc(commit);
24012401

2402+
// We never enable `download-rustc` without `download-ci-llvm`. If `self.llvm_from_ci` is false,
2403+
// it means the "if-unchanged" logic has detected some changes in the LLVM submodule.
2404+
if CiEnv::is_ci() && !self.llvm_from_ci {
2405+
println!("WARNING: LLVM submodule has changes, `download-rustc` will be disabled.");
2406+
return None;
2407+
}
2408+
24022409
if let Some(config_path) = &self.config {
24032410
let ci_config_toml = match self.get_builder_toml("ci-rustc") {
24042411
Ok(ci_config_toml) => ci_config_toml,

0 commit comments

Comments
 (0)