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

Commit

Permalink
enable lto for release builds (#10717)
Browse files Browse the repository at this point in the history
  • Loading branch information
ordian authored and dvdplm committed Jun 4, 2019
1 parent faf6f1f commit 4416187
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,13 @@ name = "parity"

[profile.dev]

[profile.test]
lto = false
opt-level = 3 # makes tests slower to compile, but faster to run

[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 @@ -6,7 +6,7 @@ set -e # fail on any error
set -u # treat unset variables as error

FEATURES="json-tests,ci-skip-tests"
OPTIONS="--release"
OPTIONS=""
#use nproc `linux only
THREADS=$(nproc)

Expand Down

0 comments on commit 4416187

Please sign in to comment.