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

Commit 4416187

Browse files
ordiandvdplm
authored andcommitted
enable lto for release builds (#10717)
1 parent faf6f1f commit 4416187

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,13 @@ name = "parity"
119119

120120
[profile.dev]
121121

122+
[profile.test]
123+
lto = false
124+
opt-level = 3 # makes tests slower to compile, but faster to run
125+
122126
[profile.release]
123127
debug = false
128+
lto = true
124129

125130
[workspace]
126131
# This should only list projects that are not

scripts/gitlab/test-linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -e # fail on any error
66
set -u # treat unset variables as error
77

88
FEATURES="json-tests,ci-skip-tests"
9-
OPTIONS="--release"
9+
OPTIONS=""
1010
#use nproc `linux only
1111
THREADS=$(nproc)
1212

0 commit comments

Comments
 (0)