Skip to content

Commit 7b8cbe4

Browse files
committed
handle dry-run mode in Config::get_builder_toml
Signed-off-by: onur-ozkan <[email protected]>
1 parent 13e16a9 commit 7b8cbe4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/bootstrap/src/core/config/config.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1217,6 +1217,10 @@ impl Config {
12171217
}
12181218

12191219
pub(crate) fn get_builder_toml(&self, build_name: &str) -> Result<TomlConfig, toml::de::Error> {
1220+
if self.dry_run() {
1221+
return Ok(TomlConfig::default());
1222+
}
1223+
12201224
let builder_config_path =
12211225
self.out.join(self.build.triple).join(build_name).join(BUILDER_CONFIG_FILENAME);
12221226
Self::get_toml(&builder_config_path)

0 commit comments

Comments
 (0)