compiletest: Add the libaux path to PATH on win32

This commit is contained in:
Brian Anderson 2012-06-01 18:24:55 -07:00
parent 8f7364b26d
commit 7335b2a51c

View File

@ -9,9 +9,13 @@ fn target_env(lib_path: str, prog: str) -> [(str,str)] {
let mut env = os::env(); 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| env = vec::map(env) {|pair|
let (k,v) = pair; let (k,v) = pair;
if k == "PATH" { ("PATH", v + ";" + lib_path) } if k == "PATH" { ("PATH", v + ";" + lib_path + ";" + aux_path) }
else { (k,v) } else { (k,v) }
}; };
if str::ends_with(prog, "rustc.exe") { if str::ends_with(prog, "rustc.exe") {