From 76b3aecda0a32e36b0114eaa2a852488ab9776aa Mon Sep 17 00:00:00 2001 From: Corwin Date: Thu, 23 Mar 2023 20:47:15 +0000 Subject: [PATCH 1/2] workaround the rust issue rust-lang/rust#108853 --- agb/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb/Cargo.toml b/agb/Cargo.toml index 36659cdff..709ac4600 100644 --- a/agb/Cargo.toml +++ b/agb/Cargo.toml @@ -12,7 +12,7 @@ opt-level = 3 debug = true [profile.release] -opt-level = "s" +opt-level = 3 lto = "thin" debug = true From 01275080611fd355d0e1f5c4c04da7fc482d4803 Mon Sep 17 00:00:00 2001 From: Corwin Date: Thu, 23 Mar 2023 21:40:20 +0000 Subject: [PATCH 2/2] fat lto to fix build :) (not recommended as general strategy) --- agb/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb/Cargo.toml b/agb/Cargo.toml index 709ac4600..60e202c04 100644 --- a/agb/Cargo.toml +++ b/agb/Cargo.toml @@ -13,7 +13,7 @@ debug = true [profile.release] opt-level = 3 -lto = "thin" +lto = "fat" debug = true [features]