From d675435ece9b48b7deba77a9a244e2a2bd4cd182 Mon Sep 17 00:00:00 2001 From: Aditya Kamath Date: Wed, 20 May 2026 03:34:38 -0500 Subject: [PATCH 01/10] Disable LTO and Strip in AIX. Fat LTO does not work in AIX and strip in rust is removing .info section. This needs to be corrected in future versions. --- Cargo.toml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5e4213788..3f855cfc3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -381,10 +381,6 @@ use_self = "warn" # Diagnostics are not actionable: Enable once https://github.com/rust-lang/rust-clippy/issues/13774 is resolved. large_stack_arrays = "allow" -[profile.release] -strip = true -lto = "fat" - # This profile is meant to mimic the `release` profile as closely as # possible, but using settings that are more beneficial for iterative # development. That is, the `release` profile is intended for actually @@ -453,3 +449,8 @@ codegen-units = 1 # The profile that 'cargo dist' will build with. [profile.dist] inherits = "release" + +[profile.release] +strip = false +lto = false +opt-level = 2 -- 2.51.2