From 9c3c88c94563ed9c42b7c6549c89e5fc8cc5615e Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Fri, 16 Sep 2022 11:10:20 +0400 Subject: [PATCH] Use `builder.sysroot(...)` instead of a hack --- src/bootstrap/tool.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs index 77109659ca7..d603f2bb8ab 100644 --- a/src/bootstrap/tool.rs +++ b/src/bootstrap/tool.rs @@ -778,13 +778,9 @@ impl Step for RustAnalyzerProcMacroSrv { source_type: SourceType::InTree, })?; - // Copy `rust-analyzer-proc-macro-srv` to `build/triple/stageN/libexec/` + // Copy `rust-analyzer-proc-macro-srv` to `/libexec/` // so that r-a can use it. - let libexec_path = builder - .out - .join(&*builder.config.build.triple) - .join(format!("stage{}", self.compiler.stage)) - .join("libexec"); + let libexec_path = builder.sysroot(self.compiler).join("libexec"); t!(fs::create_dir_all(&libexec_path)); builder.copy(&path, &libexec_path.join("rust-analyzer-proc-macro-srv"));