]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/rustc/src/codegen-options/index.md
New upstream version 1.62.1+dfsg1
[rustc.git] / src / doc / rustc / src / codegen-options / index.md
index 3b0cf92bbb763d1450443947a5792ea71b83f02e..02011325d687881c02174adbd61ac1148d95fe80 100644 (file)
@@ -550,6 +550,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.