Skip to content

Commit

Permalink
Use 'config.link_deps()' to link dependencies in codegen tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed May 19, 2018
1 parent ff5db84 commit 44836aa
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions codegen/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 44836aa

Please sign in to comment.