Skip to content

Commit 7d2e813

Browse files
committed
Add target libs directory to search path
1 parent 52f9927 commit 7d2e813

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/compile-test.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ fn config(mode: &str, dir: PathBuf) -> compiletest::Config {
8686
.collect::<Vec<_>>();
8787

8888
config.target_rustcflags = Some(format!(
89-
"-L {0} -L {0}/deps -Dwarnings -Zui-testing {1}",
89+
"-L {0} -L {0}/deps {1} -Dwarnings -Zui-testing {2}",
9090
host_libs().display(),
91+
target_libs().map_or_else(String::new, |path| format!("-L {0} -L {0}/deps", path.display())),
9192
disambiguated.join(" ")
9293
));
9394

0 commit comments

Comments
 (0)