diff --git a/Cargo.toml b/Cargo.toml index 7d5ac40a90..f63805643b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -112,8 +112,8 @@ winapi = "0.3.9" # We optimize the release build for size. [profile.release] opt-level = "z" -panic = "abort" -strip = true # Strip symbols from the binary. -codegen-units = 1 # Parallel compilation prevents some optimizations. +panic = "unwind" # Abort makes backtraces useless. +strip = "debuginfo" # Only strip debuginfo (not symbols) to keep backtraces useful. +codegen-units = 1 # Parallel compilation prevents some optimizations. # We do not enable link-time optimizations (lto) because they cause the # CLI to timeout when run in Xcode Cloud.