From 44836aa2df4cb6ecc06f9fd26371eb1f28a62a5c Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Sat, 19 May 2018 16:53:09 -0700 Subject: [PATCH] Use 'config.link_deps()' to link dependencies in codegen tests. --- codegen/tests/tests.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/codegen/tests/tests.rs b/codegen/tests/tests.rs index bf60b30216..381c005433 100644 --- a/codegen/tests/tests.rs +++ b/codegen/tests/tests.rs @@ -8,20 +8,8 @@ fn run_mode(mode: &'static str) { config.mode = cfg_mode; config.src_base = PathBuf::from(format!("tests/{}", mode)); + config.link_deps(); - #[cfg(debug_assertions)] - let flags = [ - "-L crate=../target/debug/", - "-L dependency=../target/debug/deps/", - ].join(" "); - - #[cfg(not(debug_assertions))] - let flags = [ - "-L crate=../target/release/", - "-L dependency=../target/release/deps/", - ].join(" "); - - config.target_rustcflags = Some(flags); compiletest::run_tests(&config); }