2021-05-07 00:05:08 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2023-07-16 14:54:25 +00:00
|
|
|
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
|
2021-05-07 00:05:08 +00:00
|
|
|
Date: Thu, 6 May 2021 20:14:58 +0200
|
|
|
|
Subject: [PATCH] bootstrap: Change libexec dir
|
|
|
|
|
|
|
|
---
|
2024-01-03 02:00:18 +00:00
|
|
|
src/bootstrap/src/core/build_steps/dist.rs | 2 +-
|
|
|
|
src/bootstrap/src/core/build_steps/tool.rs | 2 +-
|
2023-10-07 14:55:12 +00:00
|
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
2021-05-07 00:05:08 +00:00
|
|
|
|
2024-01-03 02:00:18 +00:00
|
|
|
diff --git a/src/bootstrap/src/core/build_steps/dist.rs b/src/bootstrap/src/core/build_steps/dist.rs
|
|
|
|
index c485481b9a1e..1a1b3a2ee39a 100644
|
|
|
|
--- a/src/bootstrap/src/core/build_steps/dist.rs
|
|
|
|
+++ b/src/bootstrap/src/core/build_steps/dist.rs
|
2023-10-07 14:55:12 +00:00
|
|
|
@@ -423,7 +423,7 @@ fn prepare_image(builder: &Builder<'_>, compiler: Compiler, image: &Path) {
|
2023-04-24 12:47:24 +00:00
|
|
|
},
|
|
|
|
builder.kind,
|
|
|
|
) {
|
|
|
|
- builder.install(&ra_proc_macro_srv, &image.join("libexec"), 0o755);
|
|
|
|
+ builder.install(&ra_proc_macro_srv, &image.join("lib"), 0o755);
|
|
|
|
}
|
2022-11-05 02:34:29 +00:00
|
|
|
|
|
|
|
let libdir_relative = builder.libdir_relative(compiler);
|
2024-01-03 02:00:18 +00:00
|
|
|
diff --git a/src/bootstrap/src/core/build_steps/tool.rs b/src/bootstrap/src/core/build_steps/tool.rs
|
|
|
|
index d1bc05e51d73..6a7b788a3c4f 100644
|
|
|
|
--- a/src/bootstrap/src/core/build_steps/tool.rs
|
|
|
|
+++ b/src/bootstrap/src/core/build_steps/tool.rs
|
|
|
|
@@ -691,7 +691,7 @@ fn run(self, builder: &Builder<'_>) -> Option<PathBuf> {
|
2022-12-16 19:42:50 +00:00
|
|
|
|
|
|
|
// Copy `rust-analyzer-proc-macro-srv` to `<sysroot>/libexec/`
|
|
|
|
// so that r-a can use it.
|
|
|
|
- let libexec_path = builder.sysroot(self.compiler).join("libexec");
|
|
|
|
+ let libexec_path = builder.sysroot(self.compiler).join("lib");
|
|
|
|
t!(fs::create_dir_all(&libexec_path));
|
|
|
|
builder.copy(&path, &libexec_path.join("rust-analyzer-proc-macro-srv"));
|
|
|
|
|