From 7a6c2a246a6c445ca7167cb8a60108b4550a515f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Sat, 1 Mar 2025 12:51:11 +0100 Subject: [PATCH] Revert me: Force `Lto::Off` (#1955) --- crates/build/src/workspace/profile.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/build/src/workspace/profile.rs b/crates/build/src/workspace/profile.rs index a66e3aa1c..3c1089a33 100644 --- a/crates/build/src/workspace/profile.rs +++ b/crates/build/src/workspace/profile.rs @@ -34,7 +34,9 @@ impl Profile { pub fn default_contract_release() -> Profile { Profile { opt_level: Some(OptLevel::Z), - lto: Some(Lto::Fat), + // todo change back to `Lto::Fat` once bug in `polkavm` has been fixed. + // currently `Lto::Fat` results in the `contract-transfer` e2e tests to fail. + lto: Some(Lto::Off), codegen_units: Some(1), panic: Some(PanicStrategy::Abort), }