Rollup merge of #90058 - joshtriplett:stabilize-strip, r=wesleywiser
Stabilize -Z strip as -C strip Leave -Z strip available temporarily as an alias, to avoid breaking cargo until cargo transitions to using -C strip.
This commit is contained in:
commit
a0dc4abe98
6 changed files with 40 additions and 27 deletions
|
|
@ -525,6 +525,22 @@ platforms. Possible values are:
|
|||
Note that `packed` and `unpacked` are gated behind `-Z unstable-options` on
|
||||
non-macOS platforms at this time.
|
||||
|
||||
## strip
|
||||
|
||||
The option `-C strip=val` controls stripping of debuginfo and similar auxiliary
|
||||
data from binaries during linking.
|
||||
|
||||
Supported values for this option are:
|
||||
|
||||
- `none` - debuginfo and symbols (if they exist) are copied to the produced
|
||||
binary or separate files depending on the target (e.g. `.pdb` files in case
|
||||
of MSVC).
|
||||
- `debuginfo` - debuginfo sections and debuginfo symbols from the symbol table
|
||||
section are stripped at link time and are not copied to the produced binary
|
||||
or separate files.
|
||||
- `symbols` - same as `debuginfo`, but the rest of the symbol table section is
|
||||
stripped as well if the linker supports it.
|
||||
|
||||
## target-cpu
|
||||
|
||||
This instructs `rustc` to generate code specifically for a particular processor.
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
# `strip`
|
||||
|
||||
The tracking issue for this feature is: [#72110](https://github.com/rust-lang/rust/issues/72110).
|
||||
|
||||
------------------------
|
||||
|
||||
Option `-Z strip=val` controls stripping of debuginfo and similar auxiliary data from binaries
|
||||
during linking.
|
||||
|
||||
Supported values for this option are:
|
||||
|
||||
- `none` - debuginfo and symbols (if they exist) are copied to the produced binary or separate files
|
||||
depending on the target (e.g. `.pdb` files in case of MSVC).
|
||||
- `debuginfo` - debuginfo sections and debuginfo symbols from the symbol table section
|
||||
are stripped at link time and are not copied to the produced binary or separate files.
|
||||
- `symbols` - same as `debuginfo`, but the rest of the symbol table section is stripped as well
|
||||
if the linker supports it.
|
||||
Loading…
Add table
Add a link
Reference in a new issue