1
0
Fork 0
firefox/third_party/rust/libm/ci/run.sh
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

21 lines
454 B
Bash
Executable file

#!/usr/bin/env sh
set -ex
TARGET=$1
CMD="cargo test --all --target $TARGET"
# Needed for no-panic to correct detect a lack of panics
export RUSTFLAGS="$RUSTFLAGS -Ccodegen-units=1"
# stable by default
$CMD
$CMD --release
# unstable with a feature
$CMD --features 'unstable'
$CMD --release --features 'unstable'
# also run the reference tests
$CMD --features 'unstable musl-reference-tests'
$CMD --release --features 'unstable musl-reference-tests'