зеркало из https://github.com/mozilla/gecko-dev.git
17 строки
467 B
Bash
Executable File
17 строки
467 B
Bash
Executable File
cargo build
|
|
cargo test
|
|
# benches use `extern crate test` which requires nightly.
|
|
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]
|
|
then
|
|
if [ ! -z "`grep '\<avx\>' /proc/cpuinfo`" ]
|
|
then
|
|
echo "=== benching with '-C target-feature=+avx' ==="
|
|
export RUSTFLAGS='-C target-feature=+avx'
|
|
cargo clean && cargo bench --features simd
|
|
fi
|
|
|
|
unset RUSTFLAGS
|
|
echo "=== benching without avx ==="
|
|
cargo clean && cargo bench --features simd
|
|
fi
|