We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d94b3c commit 92c322dCopy full SHA for 92c322d
tools/test.sh
@@ -183,6 +183,12 @@ cranelift=''
183
if [[ "${RUSTFLAGS:-}" =~ -Z( )?codegen-backend=cranelift ]]; then
184
cranelift='1'
185
rustup ${pre_args[@]+"${pre_args[@]}"} component add rustc-codegen-cranelift-preview &>/dev/null
186
+else
187
+ case "$(basename "${cargo}")" in
188
+ cargo-clif | cargo-clif.exe) cranelift='1' ;;
189
+ esac
190
+fi
191
+if [[ -n "${cranelift}" ]]; then
192
# panic=unwind is not supported yet.
193
# https://github.com/rust-lang/rustc_codegen_cranelift#not-yet-supported
194
flags=' -C panic=abort -Z panic_abort_tests'
0 commit comments