From f1ac34c4fb102954b0b45f9de3bbf5c256c27a18 Mon Sep 17 00:00:00 2001 From: 0xaatif Date: Mon, 8 Jul 2024 17:16:32 +0200 Subject: [PATCH] fix: restore target-cpu=native --- zero_bin/tools/prove_rpc.sh | 3 +++ zero_bin/tools/prove_stdio.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/zero_bin/tools/prove_rpc.sh b/zero_bin/tools/prove_rpc.sh index c02be1ea8..363e3dfd4 100755 --- a/zero_bin/tools/prove_rpc.sh +++ b/zero_bin/tools/prove_rpc.sh @@ -13,6 +13,9 @@ export RUST_MIN_STACK=33554432 export RUST_BACKTRACE=1 export RUST_LOG=info +# Script users are running locally, and might benefit from extra perf. +# See also .cargo/config.toml. +export RUSTFLAGS='-C target-cpu=native -Zlinker-features=-lld' if [[ $8 == "test_only" ]]; then # Circuit sizes don't matter in test_only mode, so we keep them minimal. diff --git a/zero_bin/tools/prove_stdio.sh b/zero_bin/tools/prove_stdio.sh index 5a0f374d8..23b4b5948 100755 --- a/zero_bin/tools/prove_stdio.sh +++ b/zero_bin/tools/prove_stdio.sh @@ -29,6 +29,9 @@ export TOKIO_WORKER_THREADS=$num_procs export RUST_MIN_STACK=33554432 export RUST_BACKTRACE=full export RUST_LOG=info +# Script users are running locally, and might benefit from extra perf. +# See also .cargo/config.toml. +export RUSTFLAGS='-C target-cpu=native -Zlinker-features=-lld' INPUT_FILE=$1 TEST_ONLY=$2