mirror of https://github.com/rwf2/Rocket.git
Fix compiletest linker flags for release builds.
This commit is contained in:
parent
0f9828d095
commit
68b49f5d74
|
@ -10,11 +10,18 @@ pub fn run(mode: Mode) {
|
|||
config.mode = mode;
|
||||
config.src_base = PathBuf::from(format!("tests/{}", mode));
|
||||
|
||||
#[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);
|
||||
run_tests(&config);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue