Skip to content

Commit 57c95ac

Browse files
authored
Merge pull request #454 from Indy2222/feature/build-profiles
2 parents ac1f2ff + a5daf2c commit 57c95ac

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ homepage.workspace = true
1212
license.workspace = true
1313
categories.workspace = true
1414

15-
[profile.release]
15+
[profile.lto]
16+
inherits = "release"
1617
lto = true
1718

1819
[profile.testing]
1920
inherits = "release"
2021
opt-level = 2
21-
lto = false
2222
debug = true
2323
debug-assertions = true
2424
overflow-checks = true

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,17 @@ Clone, build & run recipe (will work in the majority of the cases):
5252

5353
# Build Profiles
5454

55-
Link time optimizations (LTO) are enabled on `release` profile. Thus release
56-
build takes a long time.
57-
5855
## Testing Profile
5956

6057
On top of the standard Cargo build profiles, there is a `testing` profile
6158
optimized for manual testing. In this profile, extra checks and debug info are
6259
included in the build. LTO is disabled and the optimization level is fine-tuned
6360
for fast compilation times while keeping performance reasonable.
6461

62+
## LTO Profile
63+
64+
Profile `lto` shares configuration with `release` profile but enables LTO.
65+
6566
# Where to Get Help?
6667

6768
* Consult [TUTORIAL.md](/TUTORIAL.md), [CONTRIBUTING.md](/CONTRIBUTING.md),

0 commit comments

Comments
 (0)