From b3caa7ab7bc3c91b5a52dde41eca5fb23e6bcf61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Wed, 12 Aug 2020 00:00:40 +0200 Subject: [PATCH] Update TODO --- scripts/run-aquatic-http.sh | 8 +------- scripts/run-aquatic-ws.sh | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/scripts/run-aquatic-http.sh b/scripts/run-aquatic-http.sh index c95904e..343b6de 100755 --- a/scripts/run-aquatic-http.sh +++ b/scripts/run-aquatic-http.sh @@ -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-wihout-avx-512 cargo run --release --bin aquatic_http -- $@ diff --git a/scripts/run-aquatic-ws.sh b/scripts/run-aquatic-ws.sh index 2aad847..40be253 100755 --- a/scripts/run-aquatic-ws.sh +++ b/scripts/run-aquatic-ws.sh @@ -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 -- $@