Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix linker failure
  • Loading branch information
GuillaumeGomez committed Jan 12, 2017
1 parent bd16aa0 commit 6f58b7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/librustc_driver/driver.rs
Expand Up @@ -46,6 +46,7 @@ use std::mem;
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;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 6f58b7f

Please sign in to comment.