Fix tests

This commit is contained in:
Antoni Boucher 2023-01-09 17:42:35 -05:00
parent f1f136bb66
commit 4b628e5334
2 changed files with 6 additions and 1 deletions

View File

@ -121,7 +121,7 @@ jobs:
run: | run: |
./prepare_build.sh ./prepare_build.sh
${{ matrix.libgccjit_version.env_extra }} ./build.sh ${{ matrix.libgccjit_version.extra }} ${{ matrix.libgccjit_version.env_extra }} ./build.sh ${{ matrix.libgccjit_version.extra }}
cargo test ${{ matrix.libgccjit_version.extra }} ${{ matrix.libgccjit_version.env_extra }} cargo test ${{ matrix.libgccjit_version.extra }}
./clean_all.sh ./clean_all.sh
- name: Prepare dependencies - name: Prepare dependencies

View File

@ -50,6 +50,11 @@ pub fn main_inner(profile: Profile) {
"-o", exe.to_str().expect("to_str"), "-o", exe.to_str().expect("to_str"),
path.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 { match profile {
Profile::Debug => {} Profile::Debug => {}
Profile::Release => { Profile::Release => {