Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 52f2f8f

Browse files
committed
Auto merge of rust-lang#139588 - Kobzol:rust-analyzer-opt, r=<try>
Apply LTO when building rust-analyzer Trying if LTO/PGO can help RA's performance, and by how much. CC `@Veykril` I realized that we don't even do LTO for Rust Analyzer, that could be a very low hanging fruit to improve its performance 😅 try-job: dist-x86_64-linux
2 parents f06e5c1 + 3501da3 commit 52f2f8f

File tree

1 file changed

+1
-1
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+1
-1
lines changed

src/bootstrap/src/core/build_steps/tool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl Step for ToolBuild {
148148
&self.extra_features,
149149
);
150150

151-
if path.ends_with("/rustdoc") &&
151+
if (path.ends_with("/rustdoc") || tool == "rust-analyzer") &&
152152
// rustdoc is performance sensitive, so apply LTO to it.
153153
is_lto_stage(&self.compiler)
154154
{

0 commit comments

Comments
 (0)