Skip to content

Commit

Permalink
Rollup merge of rust-lang#72111 - petrochenkov:docstrip, r=ehuss
Browse files Browse the repository at this point in the history
rustc-book: Document `-Z strip=val` option

cc rust-lang#72110
  • Loading branch information
Dylan-DPC authored May 20, 2020
2 parents 0aa6751 + 1899afa commit a8f9c34
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/doc/unstable-book/src/compiler-flags/strip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# `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.

0 comments on commit a8f9c34

Please sign in to comment.