Skip to content

Commit 5b7bd2f

Browse files
committed
mark rust-analyzer as a host-only tool
All tools meant to be shipped with host toolchains only should be marked as `ONLY_HOSTS = true`, but rust-analyzer was marked as `ONLY_HOSTS = false` incorrectly. This meant that bootstrap attempted to build rust-analyzer for cross-compilation-only targets, causing errors because libstd is not present on some of them. It will still be possible to cross-compile rust-analyzer by passing a different --host flag to ./x, like you can cross-compile other tools.
1 parent 5605ed8 commit 5b7bd2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/tool.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ pub struct RustAnalyzer {
698698
impl Step for RustAnalyzer {
699699
type Output = Option<PathBuf>;
700700
const DEFAULT: bool = true;
701-
const ONLY_HOSTS: bool = false;
701+
const ONLY_HOSTS: bool = true;
702702

703703
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
704704
let builder = run.builder;
@@ -742,7 +742,7 @@ pub struct RustAnalyzerProcMacroSrv {
742742
impl Step for RustAnalyzerProcMacroSrv {
743743
type Output = Option<PathBuf>;
744744
const DEFAULT: bool = true;
745-
const ONLY_HOSTS: bool = false;
745+
const ONLY_HOSTS: bool = true;
746746

747747
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
748748
let builder = run.builder;

0 commit comments

Comments
 (0)