From 95bf0abdad8e4d2089e017d07b778d9d615a32e1 Mon Sep 17 00:00:00 2001 From: Tom Scanlan Date: Sat, 16 Sep 2023 09:04:50 -0400 Subject: [PATCH] doc: differentiate defaults for split-debuginfo --- src/doc/src/reference/profiles.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/doc/src/reference/profiles.md b/src/doc/src/reference/profiles.md index faf3efe187f..489cbfb6403 100644 --- a/src/doc/src/reference/profiles.md +++ b/src/doc/src/reference/profiles.md @@ -96,6 +96,10 @@ split-debuginfo` flag] and is platform-specific. Some options are only available on the [nightly channel]. The Cargo default may change in the future once more testing has been performed, and support for DWARF is stabilized. +Be aware that Cargo and rustc have different defaults for this option. This +option exists to allow Cargo to experiment on different combinations of flags +thus providing better debugging and developer experience. + [nightly channel]: ../../book/appendix-07-nightly-rust.html [`-C split-debuginfo` flag]: ../../rustc/codegen-options/index.html#split-debuginfo