From 8019deb0a9bd3a7d10e728e730126c3875ec37bd Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Thu, 10 Aug 2017 19:39:32 +0200 Subject: [PATCH] Update compiletest.rs --- tests/compiletest.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/compiletest.rs b/tests/compiletest.rs index 78886d96413..5ceb60de638 100644 --- a/tests/compiletest.rs +++ b/tests/compiletest.rs @@ -73,8 +73,10 @@ fn run_pass(path: &str) { config.rustc_path = rustc_path; config.run_lib_path = rustc_lib_path(); config.compile_lib_path = rustc_lib_path(); + config.target_rustcflags = Some(format!("-Dwarnings --sysroot {}", get_sysroot().display())); + } else { + config.target_rustcflags = Some("-Dwarnings".to_owned()); } - config.target_rustcflags = Some(format!("-Dwarnings --sysroot {}", get_sysroot().display())); config.host_rustcflags = Some("-Dwarnings".to_string()); compiletest::run_tests(&config); }