Debian Codegraph @

third_party/rust/libm/ci/run.sh

raw
1 #!/usr/bin/env sh
2
3 set -ex
4 TARGET=$1
5
6 CMD="cargo test --all --target $TARGET"
7
8 # Needed for no-panic to correct detect a lack of panics
9 export RUSTFLAGS="$RUSTFLAGS -Ccodegen-units=1"
10
11 # stable by default
12 $CMD
13 $CMD --release
14
15 # unstable with a feature
16 $CMD --features 'unstable'
17 $CMD --release --features 'unstable'
18
19 # also run the reference tests
20 $CMD --features 'unstable musl-reference-tests'
21 $CMD --release --features 'unstable musl-reference-tests'