Skip to content

Commit 3501da3

Browse files
committed
Apply LTO when building rust-analyzer
1 parent f06e5c1 commit 3501da3

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)