Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backend/ninja: Generate sysroot in rust-project.json
Rust-analyzer relies on sysroot to discover its proc-macro server [1] which is typically installed at <sysroot>/libexec/rust-analyzer-proc-macro-srv. When used with rust-project.json, rust-analyzer expects the json file to specify sysroot and fails to launch the proc-macro server otherwise. So add sysroot to the meson-generated rust-project.json and point it to the sysroot of the detected rustc compiler. [1] https://github.com/rust-lang/rust-analyzer/blob/2024-09-16/crates/project-model/src/sysroot.rs#L175 Signed-off-by: Junjie Mao <junjie.mao@hotmail.com> (cherry picked from commit e5d03f5)
- Loading branch information