about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2022-02-04 11:48:18 -0800
committerEric Huss <eric@huss.org>2022-02-04 11:48:18 -0800
commitb72f55580cf78fb93f05a04ec10e9ae34ea58202 (patch)
tree01df1c4ddb495e79256885af59c59638622aeefa
parent4e8fb743ccbec27344b2dd42de7057f41d4ebfdd (diff)
downloadrust-b72f55580cf78fb93f05a04ec10e9ae34ea58202.tar.gz
rust-b72f55580cf78fb93f05a04ec10e9ae34ea58202.zip
Document -C symbol-mangling-version
-rw-r--r--src/doc/rustc/src/codegen-options/index.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/doc/rustc/src/codegen-options/index.md b/src/doc/rustc/src/codegen-options/index.md
index 0201b88417a..3e3d68da4c9 100644
--- a/src/doc/rustc/src/codegen-options/index.md
+++ b/src/doc/rustc/src/codegen-options/index.md
@@ -541,6 +541,21 @@ Supported values for this option are:
 - `symbols` - same as `debuginfo`, but the rest of the symbol table section is
   stripped as well if the linker supports it.
 
+## symbol-mangling-version
+
+This option controls the [name mangling] format for encoding Rust item names
+for the purpose of generating object code and linking.
+
+Supported values for this option are:
+
+* `v0` — The "v0" mangling scheme. The specific format is not specified at
+  this time.
+
+The default if not specified will use a compiler-chosen default which may
+change in the future.
+
+[name mangling]: https://en.wikipedia.org/wiki/Name_mangling
+
 ## target-cpu
 
 This instructs `rustc` to generate code specifically for a particular processor.