From 4495b2f7b4206206a3dbd7d9bfc7281460184798 Mon Sep 17 00:00:00 2001 From: alpitol <128492366+alpitol@users.noreply.github.com> Date: Mon, 25 Mar 2024 17:37:46 +0200 Subject: [PATCH] Update Rust 1.77 change about debug symbol stripping The default value for release builds is not anymore strip = "none", but rather strip = "debuginfo". --- src/doc/src/reference/profiles.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/doc/src/reference/profiles.md b/src/doc/src/reference/profiles.md index fac84f8363e..3abdc7b8bf3 100644 --- a/src/doc/src/reference/profiles.md +++ b/src/doc/src/reference/profiles.md @@ -113,11 +113,12 @@ strip either symbols or debuginfo from a binary. This can be enabled like so: # ... [profile.release] -strip = "debuginfo" +strip = "symbols" ``` Possible string values of `strip` are `"none"`, `"debuginfo"`, and `"symbols"`. -The default is `"none"`. +For debug profiles the default is `"none"`, and for profiles with `debug = false` +the default is `"debuginfo"`. You can also configure this option with the boolean values `true` or `false`. `strip = true` is equivalent to `strip = "symbols"`. `strip = false` is @@ -293,7 +294,7 @@ The default settings for the `release` profile are: opt-level = 3 debug = false split-debuginfo = '...' # Platform-specific. -strip = "none" +strip = "debuginfo" debug-assertions = false overflow-checks = false lto = false