diff options
| author | Junjie Mao <junjie.mao@hotmail.com> | 2024-09-19 08:29:59 +0800 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-09-18 21:51:06 -0400 |
| commit | e5d03f5e138173b03ad2b0223bbcb8f436cb3bf1 (patch) | |
| tree | a017d4fd7cbec7aa9ed1c786c868270f4ec0fc3f /test cases/unit | |
| parent | 81c50885689488d701ec442d08234b442e975d78 (diff) | |
| download | meson-e5d03f5e138173b03ad2b0223bbcb8f436cb3bf1.tar.gz | |
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>
Diffstat (limited to 'test cases/unit')
0 files changed, 0 insertions, 0 deletions
