Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Use RUSTFLAGS to set the optimization level #10719

Merged
merged 10 commits into from
Jun 7, 2019
Merged
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,9 @@ path = "parity/lib.rs"
path = "parity/main.rs"
name = "parity"

[profile.dev]

[profile.release]
debug = false
lto = true

[workspace]
# This should only list projects that are not
Expand Down
2 changes: 1 addition & 1 deletion scripts/gitlab/test-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ rustup default $1
rustup show

echo "________Running Parity Full Test Suite________"
time cargo test $OPTIONS --features "$FEATURES" --locked --all --target $CARGO_TARGET --verbose --color=always -- --test-threads $THREADS
CARGO_INCREMENTAL=0 RUSTFLAGS="-C opt-level=3 -C overflow-checks=off -C debuginfo=2" time cargo test $OPTIONS --features "$FEATURES" --locked --all --target $CARGO_TARGET --verbose --color=always -- --test-threads $THREADS
ordian marked this conversation as resolved.
Show resolved Hide resolved