From 0c2bf2a28f4f063758cc77b8aa36d07fdec29b79 Mon Sep 17 00:00:00 2001 From: Rami Khalil Date: Sat, 14 Dec 2024 07:40:43 +0200 Subject: [PATCH] enable lto in guest builds --- guests/reth-ethereum/Cargo.toml | 13 +++++++++++++ guests/reth-optimism/Cargo.toml | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/guests/reth-ethereum/Cargo.toml b/guests/reth-ethereum/Cargo.toml index 996ed4c4..250cb7fb 100644 --- a/guests/reth-ethereum/Cargo.toml +++ b/guests/reth-ethereum/Cargo.toml @@ -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" diff --git a/guests/reth-optimism/Cargo.toml b/guests/reth-optimism/Cargo.toml index 90a67309..80d869b1 100644 --- a/guests/reth-optimism/Cargo.toml +++ b/guests/reth-optimism/Cargo.toml @@ -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"