summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_codegen_gcc/tests/lang_tests_common.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_codegen_gcc/tests/lang_tests_common.rs')
-rw-r--r--compiler/rustc_codegen_gcc/tests/lang_tests_common.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/tests/lang_tests_common.rs b/compiler/rustc_codegen_gcc/tests/lang_tests_common.rs
index 8e378177e..06de26f7e 100644
--- a/compiler/rustc_codegen_gcc/tests/lang_tests_common.rs
+++ b/compiler/rustc_codegen_gcc/tests/lang_tests_common.rs
@@ -46,11 +46,15 @@ pub fn main_inner(profile: Profile) {
&format!("-Zcodegen-backend={}/target/debug/librustc_codegen_gcc.so", current_dir),
"--sysroot", &format!("{}/build_sysroot/sysroot/", current_dir),
"-Zno-parallel-llvm",
- "-C", "panic=abort",
"-C", "link-arg=-lc",
"-o", exe.to_str().expect("to_str"),
path.to_str().expect("to_str"),
]);
+ if let Some(flags) = option_env!("TEST_FLAGS") {
+ for flag in flags.split_whitespace() {
+ compiler.arg(&flag);
+ }
+ }
match profile {
Profile::Debug => {}
Profile::Release => {