Apply LTO when building rustc tools
This commit is contained in:
parent
f06e5c1e35
commit
9a26863acc
1 changed files with 3 additions and 1 deletions
|
|
@ -148,7 +148,9 @@ impl Step for ToolBuild {
|
|||
&self.extra_features,
|
||||
);
|
||||
|
||||
if path.ends_with("/rustdoc") &&
|
||||
// Rustc tools (miri, clippy, cargo, rustfmt, rust-analyzer)
|
||||
// could use the additional optimizations.
|
||||
if self.mode == Mode::ToolRustc &&
|
||||
// rustdoc is performance sensitive, so apply LTO to it.
|
||||
is_lto_stage(&self.compiler)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue