Don't join config file path if provided through --config-file option
This commit is contained in:
parent
59546ea2d5
commit
2bcc73540c
1 changed files with 4 additions and 1 deletions
|
|
@ -312,7 +312,10 @@ impl ConfigInfo {
|
|||
}
|
||||
|
||||
pub fn setup_gcc_path(&mut self) -> Result<(), String> {
|
||||
let config_file = self.compute_path(self.config_file.as_deref().unwrap_or("config.toml"));
|
||||
let config_file = match self.config_file.as_deref() {
|
||||
Some(config_file) => config_file.into(),
|
||||
None => self.compute_path("config.toml"),
|
||||
};
|
||||
let ConfigFile {
|
||||
gcc_path,
|
||||
download_gccjit,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue