Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAllow to use parallel codegen through `build` command #1691
Comments
This comment has been minimized.
This comment has been minimized.
|
This is actually possible with the |
alexcrichton
added
the
A-documenting-cargo-itself
label
Jun 8, 2015
This comment has been minimized.
This comment has been minimized.
|
Wonderful! Thanks! |
This comment has been minimized.
This comment has been minimized.
|
When not specified, cargo lets rustc decide, and rustc will default to 1. How should this be reflected in the docs? # The development profile, used for `cargo build`
[profile.dev]
opt-level = 0 # Controls the --opt-level the compiler builds with
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`The above is slightly incorrect because the actual default is |
This comment has been minimized.
This comment has been minimized.
|
Ah it's fine to just have some placeholder like |
JustAPerson
added a commit
to JustAPerson/cargo
that referenced
this issue
Jun 11, 2015
JustAPerson
added a commit
to JustAPerson/cargo
that referenced
this issue
Jun 11, 2015
JustAPerson
referenced this issue
Jun 11, 2015
Merged
Document the `codegen-units` manifest option #1704
This comment has been minimized.
This comment has been minimized.
Hm, it's extremely non-obvious to me why this makes sense in a per-project |
bors
added a commit
that referenced
this issue
Jun 11, 2015
This comment has been minimized.
This comment has been minimized.
|
@huonw hm that's true, I initially thought that it was closely related to the optimization level of a crate (which seems appropriate in a profile), but it may be more of a That being said, I think that most crates won't bother with this key and will instead on the compiler choosing a nice set of defaults. |
vhbit commentedJun 8, 2015
It's very unfortunate that while parallel codegen landed, it's still impossible to use it directly from
cargo build