enable lto for release builds (#10717)

This commit is contained in:
Andronik Ordian 2019-06-04 19:01:18 +02:00 committed by David
parent faf6f1f9ea
commit 44161874ff
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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)