do not check incompatibility if config.toml isn't present

Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
onur-ozkan 2024-08-14 08:06:50 +03:00
parent b76f6a3b1a
commit 43320d5d6c

View File

@ -2320,10 +2320,11 @@ impl Config {
Some(commit) => {
self.download_ci_rustc(commit);
if let Some(config_path) = &self.config {
let builder_config_path =
self.out.join(self.build.triple).join("ci-rustc/builder-config");
let ci_config_toml = Self::get_toml(&builder_config_path);
let current_config_toml = Self::get_toml(self.config.as_ref().unwrap());
let current_config_toml = Self::get_toml(config_path);
// Check the config compatibility
let res = check_incompatible_options_for_ci_rustc(
@ -2341,6 +2342,7 @@ impl Config {
}
res.unwrap();
}
Some(commit.clone())
}