Skip to content

Commit 4b628e5

Browse files
committed
Fix tests
1 parent f1f136b commit 4b628e5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
run: |
122122
./prepare_build.sh
123123
${{ matrix.libgccjit_version.env_extra }} ./build.sh ${{ matrix.libgccjit_version.extra }}
124-
cargo test ${{ matrix.libgccjit_version.extra }}
124+
${{ matrix.libgccjit_version.env_extra }} cargo test ${{ matrix.libgccjit_version.extra }}
125125
./clean_all.sh
126126
127127
- name: Prepare dependencies

tests/lang_tests_common.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ pub fn main_inner(profile: Profile) {
5050
"-o", exe.to_str().expect("to_str"),
5151
path.to_str().expect("to_str"),
5252
]);
53+
if let Some(flags) = option_env!("TEST_FLAGS") {
54+
for flag in flags.split_whitespace() {
55+
compiler.arg(&flag);
56+
}
57+
}
5358
match profile {
5459
Profile::Debug => {}
5560
Profile::Release => {

0 commit comments

Comments
 (0)