We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
builder.sysroot(...)
1 parent 532e3a5 commit 9c3c88cCopy full SHA for 9c3c88c
src/bootstrap/tool.rs
@@ -778,13 +778,9 @@ impl Step for RustAnalyzerProcMacroSrv {
778
source_type: SourceType::InTree,
779
})?;
780
781
- // Copy `rust-analyzer-proc-macro-srv` to `build/triple/stageN/libexec/`
+ // Copy `rust-analyzer-proc-macro-srv` to `<sysroot>/libexec/`
782
// so that r-a can use it.
783
- let libexec_path = builder
784
- .out
785
- .join(&*builder.config.build.triple)
786
- .join(format!("stage{}", self.compiler.stage))
787
- .join("libexec");
+ let libexec_path = builder.sysroot(self.compiler).join("libexec");
788
t!(fs::create_dir_all(&libexec_path));
789
builder.copy(&path, &libexec_path.join("rust-analyzer-proc-macro-srv"));
790
0 commit comments