Skip to content

Commit

Permalink
Use builder.sysroot(...) instead of a hack
Browse files Browse the repository at this point in the history
  • Loading branch information
WaffleLapkin committed Sep 16, 2022
1 parent 532e3a5 commit 9c3c88c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/bootstrap/tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<sysroot>/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"));

Expand Down

0 comments on commit 9c3c88c

Please sign in to comment.