Skip to content

Commit 8207e55

Browse files
committed
disable assert_instr on avx test
1 parent 1078be3 commit 8207e55

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ci/run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ cargo_test "--release"
3939
case ${TARGET} in
4040
x86*)
4141
RUSTFLAGS="${RUSTFLAGS} -C target-feature=+avx"
42+
export STDSIMD_IGNORE_ASSERT_INSTR=1
4243
cargo_test "--release"
4344
;;
4445
*)

crates/assert-instr-macro/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ pub fn assert_instr(
3333
};
3434

3535
let instr = &invoc.instr;
36-
let maybe_ignore = if cfg!(optimized) {
36+
let maybe_ignore = if cfg!(optimized) ||
37+
::std::env::var("STDSIMD_IGNORE_ASSERT_INSTR").is_ok() {
3738
TokenStream::empty()
3839
} else {
3940
(quote! { #[ignore] }).into()

0 commit comments

Comments
 (0)