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

Commit ee55b4a

Browse files
ordiansoc1c
authored andcommitted
enable lto for release builds (#10717)
1 parent 86aacf0 commit ee55b4a

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
@@ -120,8 +120,13 @@ name = "parity"
120120

121121
[profile.dev]
122122

123+
[profile.test]
124+
lto = false
125+
opt-level = 3 # makes tests slower to compile, but faster to run
126+
123127
[profile.release]
124128
debug = false
129+
lto = true
125130

126131
[workspace]
127132
# 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)