compiletest: Add the libaux path to PATH on win32
This commit is contained in:
parent
8f7364b26d
commit
7335b2a51c
@ -9,9 +9,13 @@ fn target_env(lib_path: str, prog: str) -> [(str,str)] {
|
||||
|
||||
let mut env = os::env();
|
||||
|
||||
// Make sure we include the aux directory in the path
|
||||
assert prog.ends_with(".exe");
|
||||
let aux_path = prog.slice(0u, prog.len() - 4u) + ".libaux";
|
||||
|
||||
env = vec::map(env) {|pair|
|
||||
let (k,v) = pair;
|
||||
if k == "PATH" { ("PATH", v + ";" + lib_path) }
|
||||
if k == "PATH" { ("PATH", v + ";" + lib_path + ";" + aux_path) }
|
||||
else { (k,v) }
|
||||
};
|
||||
if str::ends_with(prog, "rustc.exe") {
|
||||
|
Loading…
Reference in New Issue
Block a user