enable lto for release builds (#10717)
This commit is contained in:
parent
faf6f1f9ea
commit
44161874ff
@ -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
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user