From fd44f19fb784db3c01e981c00e39444da5bf78d8 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 22 Dec 2025 16:32:14 +0800 Subject: [PATCH] "z" doesn't work leads to an 'illegal instruction' panic in the bootloader. turn it off for now. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 436dcdd09..c91b3bd8d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -155,7 +155,7 @@ strip = false lto = "fat" incremental = true #panic = "abort" # Remove panic output, which can reduce file size -opt-level = "z" # 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) +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]