File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,8 @@ case ${TARGET} in
2727 # instruction assertion checks to pass below the 20 instruction limit. If
2828 # this is the default, dynamic, then too many instructions are generated
2929 # when we assert the instruction for a function and it causes tests to fail.
30- #
31- # It's not clear why `-Z plt=yes` is required here. Probably a bug in LLVM.
32- # If you can remove it and CI passes, please feel free to do so!
3330 i686-* | i586-* )
34- export RUSTFLAGS=" ${RUSTFLAGS} -C relocation-model=static -Z plt=yes "
31+ export RUSTFLAGS=" ${RUSTFLAGS} -C relocation-model=static"
3532 ;;
3633 # Some x86_64 targets enable by default more features beyond SSE2,
3734 # which cause some instruction assertion checks to fail.
10299
103100# Test targets compiled with extra features.
104101case ${TARGET} in
105- x86 * )
102+ x86_64 * | i686 * )
106103 export STDARCH_DISABLE_ASSERT_INSTR=1
104+
105+ # MacOS doesn't support avx512
107106 export RUSTFLAGS=" ${RUSTFLAGS} -C target-feature=+avx"
108107 cargo_test " ${PROFILE} "
108+ ;;&
109+ x86_64* linux* | i686* linux* | x86_64* windows* | i686* windows* )
110+ export RUSTFLAGS=" ${RUSTFLAGS} -C target-feature=+avx512f"
111+ cargo_test " ${PROFILE} "
109112 ;;
110113 # FIXME: don't build anymore
111114 # mips-*gnu* | mipsel-*gnu*)
You can’t perform that action at this time.
0 commit comments