mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
Don't use target-cpu native etc in scripts/test.sh
This commit is contained in:
parent
56bc028a44
commit
f2d697011b
1 changed files with 1 additions and 11 deletions
|
|
@ -1,17 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Test in release mode to avoid quickcheck tests taking forever
|
|
||||||
|
|
||||||
# Compile with target-cpu=native but without AVX512 features, since they
|
|
||||||
# decrease performance.
|
|
||||||
|
|
||||||
DISABLE_AVX512=$(rustc --print target-features | grep " avx512" |
|
|
||||||
awk '{print $1}' | sed 's/^/-C target-feature=-/' | xargs)
|
|
||||||
|
|
||||||
export RUSTFLAGS="-C target-cpu=native $DISABLE_AVX512"
|
|
||||||
|
|
||||||
# Not chosen for exact values, only to be larger than defaults
|
# Not chosen for exact values, only to be larger than defaults
|
||||||
export QUICKCHECK_TESTS=2000
|
export QUICKCHECK_TESTS=2000
|
||||||
export QUICKCHECK_GENERATOR_SIZE=1000
|
export QUICKCHECK_GENERATOR_SIZE=1000
|
||||||
|
|
||||||
cargo test --all
|
cargo test
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue