Skip to content

Commit

Permalink
Document the codegen-units manifest option
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAPerson committed Jun 11, 2015
1 parent 2ac8a86 commit 92bde81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/doc/manifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ debug = true # Controls whether the compiler passes `-g`
rpath = false # Controls whether the compiler passes `-C rpath`
lto = false # Controls `-C lto` for binaries and staticlibs
debug-assertions = true # Controls whether debug assertions are enabled
codegen-units = 1 # Controls whether the compiler passes `-C codegen-units`
# `codegen-units` is ignored when `lto = true`

# The release profile, used for `cargo build --release`
[profile.release]
Expand All @@ -187,6 +189,7 @@ debug = false
rpath = false
lto = false
debug-assertions = false
codegen-units = 1

# The testing profile, used for `cargo test`
[profile.test]
Expand All @@ -195,6 +198,7 @@ debug = true
rpath = false
lto = false
debug-assertions = true
codegen-units = 1

# The benchmarking profile, used for `cargo bench`
[profile.bench]
Expand All @@ -203,6 +207,7 @@ debug = false
rpath = false
lto = false
debug-assertions = false
codegen-units = 1

# The documentation profile, used for `cargo doc`
[profile.doc]
Expand All @@ -211,6 +216,7 @@ debug = true
rpath = false
lto = false
debug-assertions = true
codegen-units = 1
```

# The `[features]` Section
Expand Down

0 comments on commit 92bde81

Please sign in to comment.