From a226c261517298e3c35a5ab1a55293b77f43fcee Mon Sep 17 00:00:00 2001 From: Yongting You <2010youy01@gmail.com> Date: Fri, 21 Mar 2025 19:26:07 +0800 Subject: [PATCH] Keep debug info for release-nonlto build --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 5c6a89492cd34..9d112843fff28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -170,7 +170,7 @@ url = "2.5.4" [profile.release] codegen-units = 1 lto = true -strip = true +strip = true # Eliminate debug information to minimize binary size # the release profile takes a long time to build so we can use this profile during development to save time # cargo build --profile release-nonlto @@ -183,6 +183,7 @@ lto = false opt-level = 3 overflow-checks = false rpath = false +strip = false # Retain debug info for flamegraphs [profile.ci] inherits = "dev"