-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathcheck_targets.sh
More file actions
41 lines (35 loc) · 2.97 KB
/
check_targets.sh
File metadata and controls
41 lines (35 loc) · 2.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# A script to run cargo check for fearless_simd on each supported platform.
# We currently don't run this in CI, as we expect it would take too long.
# Before using, you must run:
# rustup target add aarch64-linux-android x86_64-unknown-linux-gnu i686-pc-windows-msvc wasm32-unknown-unknown riscv64gc-unknown-linux-gnu
# Run using `sh ./check_targets.sh`
# TODO: Make into an xtask like thing so that windows users can use easily.
# aarch64, both with and without neon support.
# Note that doing `-neon` is not sound due to the standard library's ABI, but the
# binary is never executed (nor indeed is it even created), and it's still a useful sanity check.
RUSTFLAGS=-Ctarget-feature=-neon cargo check -p fearless_simd --target aarch64-linux-android
RUSTFLAGS=-Ctarget-feature=-neon cargo check -p fearless_simd --target aarch64-linux-android --features force_support_fallback
cargo check -p fearless_simd --target aarch64-linux-android --features force_support_fallback
cargo check -p fearless_simd --target aarch64-linux-android
# x86_64, at all supported static SIMD levels.
RUSTFLAGS=-Ctarget-feature=+avx2,+fma cargo check -p fearless_simd --target x86_64-unknown-linux-gnu
RUSTFLAGS=-Ctarget-feature=+avx2,+fma cargo check -p fearless_simd --target x86_64-unknown-linux-gnu --features force_support_fallback
RUSTFLAGS=-Ctarget-feature=+sse4.2 cargo check -p fearless_simd --target x86_64-unknown-linux-gnu
RUSTFLAGS=-Ctarget-feature=+sse4.2 cargo check -p fearless_simd --target x86_64-unknown-linux-gnu --features force_support_fallback
cargo check -p fearless_simd --target x86_64-unknown-linux-gnu
cargo check -p fearless_simd --target x86_64-unknown-linux-gnu --features force_support_fallback
# x86 (i.e. 32 bit) at all supported static SIMD levels.
RUSTFLAGS=-Ctarget-feature=+avx2,+fma cargo check -p fearless_simd --target i686-pc-windows-msvc
RUSTFLAGS=-Ctarget-feature=+avx2,+fma cargo check -p fearless_simd --target i686-pc-windows-msvc --features force_support_fallback
RUSTFLAGS=-Ctarget-feature=+sse4.2 cargo check -p fearless_simd --target i686-pc-windows-msvc
RUSTFLAGS=-Ctarget-feature=+sse4.2 cargo check -p fearless_simd --target i686-pc-windows-msvc --features force_support_fallback
cargo check -p fearless_simd --target i686-pc-windows-msvc
cargo check -p fearless_simd --target i686-pc-windows-msvc --features force_support_fallback
# Wasm, both with and without SIMD.
cargo check -p fearless_simd --target wasm32-unknown-unknown
cargo check -p fearless_simd --target wasm32-unknown-unknown --features force_support_fallback
RUSTFLAGS=-Ctarget-feature=+simd128 cargo check -p fearless_simd --target wasm32-unknown-unknown
RUSTFLAGS=-Ctarget-feature=+simd128 cargo check -p fearless_simd --target wasm32-unknown-unknown --features force_support_fallback
# riscv64, which is importantly a target we don't support any SIMD levels for.
cargo check -p fearless_simd --target riscv64gc-unknown-linux-gnu
cargo check -p fearless_simd --target riscv64gc-unknown-linux-gnu --features force_support_fallback