diff options
| author | msizanoen1 <qtmlabs@protonmail.com> | 2019-11-08 12:29:07 +0700 |
|---|---|---|
| committer | msizanoen1 <qtmlabs@protonmail.com> | 2019-11-08 12:54:28 +0700 |
| commit | 7d2e813634367b7c1798ac54c9ea712a8e767e88 (patch) | |
| tree | fef448346406f8e7759d2bbb7391e84e5ac3bfdd | |
| parent | 52f9927ff59390f9f9cc4f2d701b907a1f8eed97 (diff) | |
| download | rust-7d2e813634367b7c1798ac54c9ea712a8e767e88.tar.gz rust-7d2e813634367b7c1798ac54c9ea712a8e767e88.zip | |
Add target libs directory to search path
| -rw-r--r-- | tests/compile-test.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/compile-test.rs b/tests/compile-test.rs index c06580c701a..2dd88f3ba5e 100644 --- a/tests/compile-test.rs +++ b/tests/compile-test.rs @@ -86,8 +86,9 @@ fn config(mode: &str, dir: PathBuf) -> compiletest::Config { .collect::<Vec<_>>(); config.target_rustcflags = Some(format!( - "-L {0} -L {0}/deps -Dwarnings -Zui-testing {1}", + "-L {0} -L {0}/deps {1} -Dwarnings -Zui-testing {2}", host_libs().display(), + target_libs().map_or_else(String::new, |path| format!("-L {0} -L {0}/deps", path.display())), disambiguated.join(" ") )); |
