Skip to content

Commit

Permalink
enable lto in guest builds
Browse files Browse the repository at this point in the history
  • Loading branch information
hashcashier committed Dec 14, 2024
1 parent 9ae3488 commit 0c2bf2a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions guests/reth-ethereum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ edition = "2021"

[workspace]

[profile.dev]
opt-level = 3

[profile.dev.build-override]
opt-level = 3

[profile.release]
debug = 1
lto = true

[profile.release.build-override]
opt-level = 3

[dependencies.risc0-zkvm]
git = "https://github.com/risc0/risc0"
rev = "e98cdad96cfecb3d959cb62abf566e5b17a0d649"
Expand Down
13 changes: 13 additions & 0 deletions guests/reth-optimism/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ edition = "2021"

[workspace]

[profile.dev]
opt-level = 3

[profile.dev.build-override]
opt-level = 3

[profile.release]
debug = 1
lto = true

[profile.release.build-override]
opt-level = 3

[dependencies.risc0-zkvm]
git = "https://github.com/risc0/risc0"
rev = "e98cdad96cfecb3d959cb62abf566e5b17a0d649"
Expand Down

0 comments on commit 0c2bf2a

Please sign in to comment.