mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Fix linker failure
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
use std::ffi::{OsString, OsStr};
|
||||
use std::fs;
|
||||
use std::io::{self, Write};
|
||||
use std::iter;
|
||||
use std::path::{Path, PathBuf};
|
||||
use syntax::{ast, diagnostics, visit};
|
||||
use syntax::attr;
|
||||
@@ -667,7 +668,10 @@ pub fn phase_2_configure_and_expand<F>(sess: &Session,
|
||||
new_path.push(path);
|
||||
}
|
||||
}
|
||||
env::set_var("PATH", &env::join_paths(new_path).unwrap());
|
||||
env::set_var("PATH",
|
||||
&env::join_paths(new_path.iter()
|
||||
.filter(|p| env::join_paths(iter::once(p)).is_ok()))
|
||||
.unwrap());
|
||||
}
|
||||
let features = sess.features.borrow();
|
||||
let cfg = syntax::ext::expand::ExpansionConfig {
|
||||
|
||||
Reference in New Issue
Block a user