Skip to content

Conversation

itsjunetime
Copy link
Contributor

The pgo xtask expects to find the recently-compiled version of rust-analyzer at /target/$target/release/rust-analyzer, but the install xtask builds it without the --target $target flag, thus placing it at /target/release/rust-analyzer.

This PR adds the --target $target argument to the compilation of rust-analyzer in the install xtask so it works as expected.

It also checks to make sure pgo actually generates files, and fails with a more actionable error (instead of the previous misleading Do you have the rustup llvm-tools component installed? suggestion) when no files are generated.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 5, 2025
@itsjunetime itsjunetime changed the title Run the version of rust-analyzer built to support pgo in pgo xtask Build rust-analyzer with --target for install/pgo xtask Oct 5, 2025
Copy link
Contributor

@ChayimFriedman2 ChayimFriedman2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue Oct 8, 2025
Merged via the queue into rust-lang:master with commit 1941dfe Oct 8, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants