Skip to content

Commit

Permalink
tools: Update test.sh to support using patched cg_clif
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Apr 14, 2024
1 parent 4d94b3c commit 92c322d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ cranelift=''
if [[ "${RUSTFLAGS:-}" =~ -Z( )?codegen-backend=cranelift ]]; then
cranelift='1'
rustup ${pre_args[@]+"${pre_args[@]}"} component add rustc-codegen-cranelift-preview &>/dev/null
else
case "$(basename "${cargo}")" in
cargo-clif | cargo-clif.exe) cranelift='1' ;;
esac
fi
if [[ -n "${cranelift}" ]]; then
# panic=unwind is not supported yet.
# https://github.com/rust-lang/rustc_codegen_cranelift#not-yet-supported
flags=' -C panic=abort -Z panic_abort_tests'
Expand Down

0 comments on commit 92c322d

Please sign in to comment.