Skip to content

Commit b72f555

Browse files
committed
Document -C symbol-mangling-version
1 parent 4e8fb74 commit b72f555

File tree

1 file changed

+15
-0
lines changed
  • src/doc/rustc/src/codegen-options

1 file changed

+15
-0
lines changed

src/doc/rustc/src/codegen-options/index.md

+15
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,21 @@ Supported values for this option are:
541541
- `symbols` - same as `debuginfo`, but the rest of the symbol table section is
542542
stripped as well if the linker supports it.
543543

544+
## symbol-mangling-version
545+
546+
This option controls the [name mangling] format for encoding Rust item names
547+
for the purpose of generating object code and linking.
548+
549+
Supported values for this option are:
550+
551+
* `v0` — The "v0" mangling scheme. The specific format is not specified at
552+
this time.
553+
554+
The default if not specified will use a compiler-chosen default which may
555+
change in the future.
556+
557+
[name mangling]: https://en.wikipedia.org/wiki/Name_mangling
558+
544559
## target-cpu
545560

546561
This instructs `rustc` to generate code specifically for a particular processor.

0 commit comments

Comments
 (0)