Skip to content

Commit

Permalink
Add target libs directory to search path
Browse files Browse the repository at this point in the history
  • Loading branch information
msizanoen1 committed Nov 8, 2019
1 parent 52f9927 commit 7d2e813
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/compile-test.rs
Expand Up @@ -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(" ")
));

Expand Down

0 comments on commit 7d2e813

Please sign in to comment.