Skip to content

Commit

Permalink
Faster compiles for debug by using release version of cranelift (#4179)
Browse files Browse the repository at this point in the history
Co-authored-by: ptitSeb <[email protected]>
  • Loading branch information
john-sharratt and ptitSeb authored Sep 4, 2023
1 parent 98188df commit 037b4bd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,22 @@ coverage = []
#[profile.release]
#debug = true

# Enable optimizations for a few crates, even for debug builds.
# This greatly speeds up using debug builds, because these crates are extremely
# slow without optimizations.
[profile.dev.package.cranelift-codegen]
opt-level = 3
[profile.dev.package.regalloc2]
opt-level = 3
[profile.dev.package.wasmparser]
opt-level = 3
[profile.dev.package.rkyv]
opt-level = 3
[profile.dev.package.wasmer-types]
opt-level = 3
[profile.dev.package.weezl]
opt-level = 3

[[bench]]
name = "static_and_dynamic_functions"
harness = false
Expand Down

0 comments on commit 037b4bd

Please sign in to comment.