Skip to content

Commit 9cc647a

Browse files
committed
handle dry-run mode in Config::get_builder_toml
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent c882838 commit 9cc647a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,6 +1212,10 @@ impl Config {
12121212
}
12131213

12141214
pub(crate) fn get_builder_toml(&self, build_name: &str) -> Result<TomlConfig, toml::de::Error> {
1215+
if self.dry_run() {
1216+
return Ok(TomlConfig::default());
1217+
}
1218+
12151219
let builder_config_path =
12161220
self.out.join(self.build.triple).join(build_name).join(BUILDER_CONFIG_FILENAME);
12171221
Self::get_toml(&builder_config_path)

0 commit comments

Comments
 (0)