mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 18:57:19 +00:00
14 lines
380 B
Bash
Executable File
14 lines
380 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -ex
|
|
|
|
# FIXME(rust-lang/rust#45201) shouldn't need to specify one codegen unit
|
|
export RUSTFLAGS="$RUSTFLAGS -C codegen-units=1"
|
|
|
|
# Tests are all super fast anyway, and they fault often enough on travis that
|
|
# having only one thread increases debuggability to be worth it.
|
|
export RUST_TEST_THREADS=1
|
|
|
|
cargo test --target $TARGET
|
|
cargo test --release --target $TARGET
|