Skip to content

Apache DataFusion SQL Query Engine

Keep debug info for release-nonlto build (#15350)

Yongting You635e73b6bf23
diff --git a/Cargo.toml b/Cargo.toml
index 548a29bc7b..cd8c3e098b 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"