Skip to content

Commit

Permalink
turn off aggressive optimizations
Browse files Browse the repository at this point in the history
In Rust 1.72, too many things are breaking when default optimizations
are turned on, and I don't have the time to figure out what is breaking.

But issue #416 makes me think that the issue isn't our code, it's
something in llvm.
  • Loading branch information
bunnie committed Sep 19, 2023
1 parent 000d660 commit 0d7601d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ strip = false
lto = "fat"
incremental = true
#panic = "abort" # Remove panic output, which can reduce file size
#opt-level = 1 # z,s: Optimize for size instead of performance; 1 for easier debugging
opt-level = "s" # z,s: Optimize for size instead of performance; 1 for easier debugging; comment out for "best performance" (but in Rust 1.72 this causes regressions)

# prefer hardware-accelerated versions of services
[patch.crates-io.sha2]
Expand Down

0 comments on commit 0d7601d

Please sign in to comment.