Use builder.sysroot(...)
instead of a hack
This commit is contained in:
parent
532e3a50eb
commit
9c3c88c945
@ -778,13 +778,9 @@ fn run(self, builder: &Builder<'_>) -> Option<PathBuf> {
|
|||||||
source_type: SourceType::InTree,
|
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.
|
// so that r-a can use it.
|
||||||
let libexec_path = builder
|
let libexec_path = builder.sysroot(self.compiler).join("libexec");
|
||||||
.out
|
|
||||||
.join(&*builder.config.build.triple)
|
|
||||||
.join(format!("stage{}", self.compiler.stage))
|
|
||||||
.join("libexec");
|
|
||||||
t!(fs::create_dir_all(&libexec_path));
|
t!(fs::create_dir_all(&libexec_path));
|
||||||
builder.copy(&path, &libexec_path.join("rust-analyzer-proc-macro-srv"));
|
builder.copy(&path, &libexec_path.join("rust-analyzer-proc-macro-srv"));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user