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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants