0001-bootstrap-Change-libexec-dir.patch (1366B)
1 diff -Naur rustc-1.87.0-src.orig/src/bootstrap/src/core/build_steps/dist.rs rustc-1.87.0-src/src/bootstrap/src/core/build_steps/dist.rs 2 --- rustc-1.87.0-src.orig/src/bootstrap/src/core/build_steps/dist.rs 2025-05-15 20:36:30.310280383 +0200 3 +++ rustc-1.87.0-src/src/bootstrap/src/core/build_steps/dist.rs 2025-05-15 20:39:42.549446415 +0200 4 @@ -432,7 +432,7 @@ 5 }, 6 builder.kind, 7 ) { 8 - let dst = image.join("libexec"); 9 + let dst = image.join("lib"); 10 builder.install(&ra_proc_macro_srv.tool_path, &dst, FileType::Executable); 11 } 12 13 diff -Naur rustc-1.87.0-src.orig/src/bootstrap/src/core/build_steps/tool.rs rustc-1.87.0-src/src/bootstrap/src/core/build_steps/tool.rs 14 --- rustc-1.87.0-src.orig/src/bootstrap/src/core/build_steps/tool.rs 2025-05-15 20:36:30.309921123 +0200 15 +++ rustc-1.87.0-src/src/bootstrap/src/core/build_steps/tool.rs 2025-05-15 20:40:02.939431874 +0200 16 @@ -954,7 +954,7 @@ 17 18 // Copy `rust-analyzer-proc-macro-srv` to `<sysroot>/libexec/` 19 // so that r-a can use it. 20 - let libexec_path = builder.sysroot(self.compiler).join("libexec"); 21 + let libexec_path = builder.sysroot(self.compiler).join("lib"); 22 t!(fs::create_dir_all(&libexec_path)); 23 builder.copy_link( 24 &tool_result.tool_path,