Skip to content

Commit a854a0c

Browse files
committed
Revert use of compiletest link_deps()
It doesn't yet behave well with spaces, common in Windows `PATH`. Ref: Manishearth/compiletest-rs#81
1 parent 3adf534 commit a854a0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rayon-futures/src/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn run_compiletest(mode: &str, path: &str) {
1414
let mut config = compiletest::Config::default();
1515
config.mode = mode.parse().ok().expect("Invalid mode");
1616
config.src_base = PathBuf::from(path);
17-
config.link_deps();
17+
config.target_rustcflags = Some("-L ../target/debug/ -L ../target/debug/deps/".to_owned());
1818

1919
compiletest::run_tests(&config);
2020
}

src/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fn run_compiletest(mode: &str, path: &str) {
88
let mut config = compiletest::Config::default();
99
config.mode = mode.parse().ok().expect("Invalid mode");
1010
config.src_base = PathBuf::from(path);
11-
config.link_deps();
11+
config.target_rustcflags = Some("-L target/debug/ -L target/debug/deps/".to_owned());
1212

1313
compiletest::run_tests(&config);
1414
}

0 commit comments

Comments
 (0)