Skip to content
This repository was archived by the owner on May 28, 2022. It is now read-only.

Commit 1ffbbb7

Browse files
committed
Update for the latest nightly Rust
Tested with: `rustc 1.34.0-nightly (8ae730a44 2019-02-04)` This commit fixes the compilation error: "can't perform LTO when compiling incrementally" by disabling incremental compilation for the `release` and `bench` profiles. <rust-lang/cargo#6564> enabled incremental compilation by default but it cannot be used at the same time with ThinLTO (hence the compile error). While incremental compilation provides a significant boost to compilation speed, I consider that the runtime performance is the utmost importance for these build types.
1 parent df4b856 commit 1ffbbb7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

EngineCore/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

EngineCore/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ members = [
5656
[profile.release]
5757
lto = true
5858
debug = true
59+
incremental = false
5960

6061
[profile.bench]
6162
lto = true
6263
debug = true
64+
incremental = false

0 commit comments

Comments
 (0)