Skip to content

Commit

Permalink
Auto merge of #12754 - nnethercote:more-strip, r=weihanglo
Browse files Browse the repository at this point in the history
Add more missing `strip` info to docs.

This is a follow-up to #12748.
  • Loading branch information
bors committed Oct 1, 2023
2 parents 7d6e312 + f506b5a commit 9a7a04f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
15 changes: 11 additions & 4 deletions src/doc/src/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ inherits = "dev" # Inherits settings from [profile.dev].
opt-level = 0 # Optimization level.
debug = true # Include debug info.
split-debuginfo = '...' # Debug info splitting behavior.
strip = "none" # Removes symbols or debuginfo.
debug-assertions = true # Enables debug assertions.
overflow-checks = true # Enables runtime integer overflow checks.
lto = false # Sets link-time optimization.
panic = 'unwind' # The panic strategy.
incremental = true # Incremental compilation.
codegen-units = 16 # Number of code generation units.
rpath = false # Sets the rpath linking option.
strip = "none" # Removes symbols or debuginfo.
[profile.<name>.build-override] # Overrides build-script settings.
# Same keys for a normal profile.
[profile.<name>.package.<name>] # Override profile for a package.
Expand Down Expand Up @@ -889,6 +889,13 @@ See [debug](profiles.md#debug).

See [split-debuginfo](profiles.md#split-debuginfo).

#### `profile.<name>.strip`
* Type: string or boolean
* Default: See profile docs.
* Environment: `CARGO_PROFILE_<name>_STRIP`

See [strip](profiles.md#strip).

#### `profile.<name>.debug-assertions`
* Type: boolean
* Default: See profile docs.
Expand Down Expand Up @@ -926,21 +933,21 @@ See [opt-level](profiles.md#opt-level).

#### `profile.<name>.panic`
* Type: string
* default: See profile docs.
* Default: See profile docs.
* Environment: `CARGO_PROFILE_<name>_PANIC`

See [panic](profiles.md#panic).

#### `profile.<name>.rpath`
* Type: boolean
* default: See profile docs.
* Default: See profile docs.
* Environment: `CARGO_PROFILE_<name>_RPATH`

See [rpath](profiles.md#rpath).

#### `profile.<name>.strip`
* Type: string
* default: See profile docs.
* Default: See profile docs.
* Environment: `CARGO_PROFILE_<name>_STRIP`

See [strip](profiles.md#strip).
Expand Down
4 changes: 2 additions & 2 deletions src/doc/src/reference/profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ The default settings for the `dev` profile are:
opt-level = 0
debug = true
split-debuginfo = '...' # Platform-specific.
strip = false
strip = "none"
debug-assertions = true
overflow-checks = true
lto = false
Expand All @@ -293,7 +293,7 @@ The default settings for the `release` profile are:
opt-level = 3
debug = false
split-debuginfo = '...' # Platform-specific.
strip = false
strip = "none"
debug-assertions = false
overflow-checks = false
lto = false
Expand Down

0 comments on commit 9a7a04f

Please sign in to comment.