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.dev]
[profile.test]
lto = false
opt-level = 3 # makes tests slower to compile, but faster to run
[profile.release] [profile.release]
debug = false debug = false
lto = true
[workspace] [workspace]
# This should only list projects that are not # 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 set -u # treat unset variables as error
FEATURES="json-tests,ci-skip-tests" FEATURES="json-tests,ci-skip-tests"
OPTIONS="--release" OPTIONS=""
#use nproc `linux only #use nproc `linux only
THREADS=$(nproc) THREADS=$(nproc)