Skip to content

Commit 3370bf6

Browse files
authored
Always build optimized versions of a couple slow build deps (#1461)
1 parent a356cc2 commit 3370bf6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Cargo.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,18 @@ resolver = "2"
6464
[profile.dev]
6565
panic = "abort"
6666

67+
# `bindgen` is used by `samael`'s build script; building it with optimizations
68+
# makes that build script run ~5x faster, more than offsetting the additional
69+
# build time added to `bindgen` itself.
70+
[profile.dev.package.bindgen]
71+
opt-level = 3
72+
73+
# `lalrpop` is used by `polar-core`'s build script; building it with
74+
# optimizations makes that build script run ~20x faster, more than offsetting
75+
# the additional build time added to `lalrpop` itself.
76+
[profile.dev.package.lalrpop]
77+
opt-level = 3
78+
6779
[profile.release]
6880
panic = "abort"
6981

0 commit comments

Comments
 (0)