mirror of https://github.com/rust-lang/rust.git
handle dry-run mode in `Config::get_builder_toml`
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
13e16a9101
commit
7b8cbe4f1c
|
@ -1217,6 +1217,10 @@ impl Config {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn get_builder_toml(&self, build_name: &str) -> Result<TomlConfig, toml::de::Error> {
|
pub(crate) fn get_builder_toml(&self, build_name: &str) -> Result<TomlConfig, toml::de::Error> {
|
||||||
|
if self.dry_run() {
|
||||||
|
return Ok(TomlConfig::default());
|
||||||
|
}
|
||||||
|
|
||||||
let builder_config_path =
|
let builder_config_path =
|
||||||
self.out.join(self.build.triple).join(build_name).join(BUILDER_CONFIG_FILENAME);
|
self.out.join(self.build.triple).join(build_name).join(BUILDER_CONFIG_FILENAME);
|
||||||
Self::get_toml(&builder_config_path)
|
Self::get_toml(&builder_config_path)
|
||||||
|
|
Loading…
Reference in New Issue