move RUSTFLAGS gen to own file instead of setting in each script

This commit is contained in:
Joakim Frostegård 2020-08-12 00:28:03 +02:00
parent b3caa7ab7b
commit cff9b44a7f
11 changed files with 18 additions and 46 deletions

View file

@ -1,11 +1,5 @@
#!/bin/sh
# 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"
. ./scripts/env-native-cpu-without-avx-512
cargo run --release --bin aquatic_ws_load_test -- $@