Skip to content

Commit 8019deb

Browse files
authored
Update compiletest.rs
1 parent 33ff32c commit 8019deb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/compiletest.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ fn run_pass(path: &str) {
7373
config.rustc_path = rustc_path;
7474
config.run_lib_path = rustc_lib_path();
7575
config.compile_lib_path = rustc_lib_path();
76+
config.target_rustcflags = Some(format!("-Dwarnings --sysroot {}", get_sysroot().display()));
77+
} else {
78+
config.target_rustcflags = Some("-Dwarnings".to_owned());
7679
}
77-
config.target_rustcflags = Some(format!("-Dwarnings --sysroot {}", get_sysroot().display()));
7880
config.host_rustcflags = Some("-Dwarnings".to_string());
7981
compiletest::run_tests(&config);
8082
}

0 commit comments

Comments
 (0)