Skip to content

Commit 2bcc735

Browse files
Don't join config file path if provided through --config-file option
1 parent 59546ea commit 2bcc735

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build_system/src/config.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,10 @@ impl ConfigInfo {
312312
}
313313

314314
pub fn setup_gcc_path(&mut self) -> Result<(), String> {
315-
let config_file = self.compute_path(self.config_file.as_deref().unwrap_or("config.toml"));
315+
let config_file = match self.config_file.as_deref() {
316+
Some(config_file) => config_file.into(),
317+
None => self.compute_path("config.toml"),
318+
};
316319
let ConfigFile {
317320
gcc_path,
318321
download_gccjit,

0 commit comments

Comments
 (0)