Skip to content

Commit 7335b2a

Browse files
committed
compiletest: Add the libaux path to PATH on win32
1 parent 8f7364b commit 7335b2a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/compiletest/procsrv.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ fn target_env(lib_path: str, prog: str) -> [(str,str)] {
99

1010
let mut env = os::env();
1111

12+
// Make sure we include the aux directory in the path
13+
assert prog.ends_with(".exe");
14+
let aux_path = prog.slice(0u, prog.len() - 4u) + ".libaux";
15+
1216
env = vec::map(env) {|pair|
1317
let (k,v) = pair;
14-
if k == "PATH" { ("PATH", v + ";" + lib_path) }
18+
if k == "PATH" { ("PATH", v + ";" + lib_path + ";" + aux_path) }
1519
else { (k,v) }
1620
};
1721
if str::ends_with(prog, "rustc.exe") {

0 commit comments

Comments
 (0)