From 2200ba74f6e9db538cbf271632524cd1eb64148e Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Mon, 27 Oct 2025 18:35:18 -0400 Subject: [PATCH] fix(cargo): force dev profiles to use opt-level = 2 to workaround hardware acceleration --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index e952d74..72f5ac1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,6 +37,11 @@ version = "0.12.0" default = ["splash"] splash = ["dep:image"] +[profile.dev] +# We have to compile for opt-level = 2 due to optimization passes +# which don't handle the UEFI target properly. +opt-level = 2 + [profile.release] lto = "thin" strip = "symbols" @@ -50,6 +55,7 @@ debug = 1 inherits = "dev" strip = "debuginfo" debug = 0 +opt-level = 2 [patch.crates-io.simd-adler32] git = "https://github.com/edera-dev/sprout-patched-deps.git"