check.sh 305 B

1234567891011
  1. #!/usr/bin/env bash
  2. set -o pipefail
  3. # Skip the test if need -Zbuild-std, it somehow doesn't work.
  4. if [ -n "$BUILD_STD" ]; then
  5. exit 0
  6. fi
  7. export CARGO_TARGET_DIR=$(mktemp -d)
  8. trap "rm -rf $CARGO_TARGET_DIR" EXIT
  9. RUSTFLAGS="-Cpanic=abort -Cdebuginfo=0" ${CARGO:-cargo} build --release $BUILD_STD 2>&1