Merge pull request #609 from GuillaumeGomez/fix-use-system-gcc
Fix `--use-system-gcc` option handling
This commit is contained in:
commit
9f33f846dd
1 changed files with 10 additions and 6 deletions
|
@ -320,12 +320,16 @@ impl ConfigInfo {
|
||||||
) -> Result<(), String> {
|
) -> Result<(), String> {
|
||||||
env.insert("CARGO_INCREMENTAL".to_string(), "0".to_string());
|
env.insert("CARGO_INCREMENTAL".to_string(), "0".to_string());
|
||||||
|
|
||||||
if self.gcc_path.is_none() && !use_system_gcc {
|
let gcc_path = if !use_system_gcc {
|
||||||
self.setup_gcc_path()?;
|
if self.gcc_path.is_none() {
|
||||||
}
|
self.setup_gcc_path()?;
|
||||||
let gcc_path = self.gcc_path.clone().expect(
|
}
|
||||||
"The config module should have emitted an error if the GCC path wasn't provided",
|
self.gcc_path.clone().expect(
|
||||||
);
|
"The config module should have emitted an error if the GCC path wasn't provided",
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
String::new()
|
||||||
|
};
|
||||||
env.insert("GCC_PATH".to_string(), gcc_path.clone());
|
env.insert("GCC_PATH".to_string(), gcc_path.clone());
|
||||||
|
|
||||||
if self.cargo_target_dir.is_empty() {
|
if self.cargo_target_dir.is_empty() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue