diff --git a/.cargo/config.toml b/.cargo/config.toml index 6340ce34a..526c1c9b4 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,4 +1,15 @@ [build] # https://github.com/rust-lang/rust/pull/124129 # https://github.com/dtolnay/linkme/pull/88 -rustflags = ["-Z", "linker-features=-lld"] + +[env] +RUST_BACKTRACE = "1" +RUST_TEST_NOCAPTURE = "1" + +[term] +verbose = true +color = 'auto' + +[target.x86_64-unknown-linux-gnu] +linker = "clang" +rustflags = ["-Z", "linker-features=-lld", "-C", "target-cpu=native"] #, "-C", "link-arg=-fuse-ld=/usr/bin/mold", "-C", "debuginfo=2"] diff --git a/Cargo.toml b/Cargo.toml index 66050ed4b..5fb943015 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -124,3 +124,27 @@ starky = { git = "https://github.com/0xPolygonZero/plonky2.git", rev = "dc77c77f [workspace.lints.clippy] too_long_first_doc_paragraph = "allow" + +[profile.release] +opt-level = 3 +debug = true +incremental = true +debug-assertions = true +lto = false +overflow-checks = false + +[profile.test] +opt-level = 3 +debug = true +incremental = true +debug-assertions = true +lto = false +overflow-checks = false + +[profile.dev] +opt-level = 3 +debug = true +incremental = true +debug-assertions = true +lto = false +overflow-checks = false diff --git a/scripts/prove_stdio.sh b/scripts/prove_stdio.sh index 48e5ecf6a..18ef39b40 100755 --- a/scripts/prove_stdio.sh +++ b/scripts/prove_stdio.sh @@ -1,6 +1,6 @@ #!/bin/bash # ------------------------------------------------------------------------------ -set -exo pipefail +set -ex # Run prover with the parsed input from the standard terminal. # To generate the json input file, use the `rpc` tool, for example: diff --git a/scripts/test_native.sh b/scripts/test_native.sh index 3093735b8..d08446d4d 100755 --- a/scripts/test_native.sh +++ b/scripts/test_native.sh @@ -149,7 +149,7 @@ echo "Testing against mainnet, current revision: $GITHASH." #BLOCKS="$CANCUNBLOCKS $RANDOMBLOCKS $ROUND3" #BLOCKS="19511272" -BLOCKS=$RANDOMBLOCKS +BLOCKS=$ROUND5 BLOCKS=`echo $BLOCKS | tr ' ' '\n' | sort -nu | tr '\n' ' '` echo "Testing blocks: $BLOCKS"