Skip to content

Commit b4f8eac

Browse files
authored
Merge pull request #8794 from oech3/codegen-units
codegen-units = 1 at release-{fast,small} profile
2 parents aa40a11 + 4bb4fa7 commit b4f8eac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,12 +600,14 @@ lto = true
600600
[profile.release-fast]
601601
inherits = "release"
602602
panic = "abort"
603+
codegen-units = 1
603604

604605
# A release-like profile that is as small as possible.
605606
[profile.release-small]
606607
inherits = "release"
607608
opt-level = "z"
608609
panic = "abort"
610+
codegen-units = 1
609611
strip = true
610612

611613
# A release-like profile with debug info, useful for profiling.

0 commit comments

Comments
 (0)