Skip to content

Commit c95ec4c

Browse files
committed
Don't set codegen-units=1 by default in CI
We can set this only for the release profile, there isn't any reason to have it set for debug tests.
1 parent b8005ac commit c95ec4c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,15 @@ exclude = [
6161
[dev-dependencies]
6262
no-panic = "0.1.30"
6363

64-
65-
# This is needed for no-panic to correctly detect the lack of panics
6664
[profile.release]
65+
# Options for no-panic to correctly detect the lack of panics
66+
codegen-units = 1
6767
lto = "fat"
6868

6969
# Release mode with debug assertions
7070
[profile.release-checked]
71-
inherits = "release"
71+
codegen-units = 1
7272
debug-assertions = true
73+
inherits = "release"
7374
lto = "fat"
7475
overflow-checks = true

0 commit comments

Comments
 (0)