From 6e239c14b68bdbe3965892b121754907b7dd760e Mon Sep 17 00:00:00 2001 From: vtta <41831480+vtta@users.noreply.github.com> Date: Tue, 18 Oct 2022 21:57:05 +0800 Subject: [PATCH] Make `proc_macro_dylib_path` absolute Fix rust-analyzer's complaint about not finding proc macro library --- scripts/generate_rust_analyzer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate_rust_analyzer.py b/scripts/generate_rust_analyzer.py index ecc7ea9a4dcfc6..c8f125605af976 100755 --- a/scripts/generate_rust_analyzer.py +++ b/scripts/generate_rust_analyzer.py @@ -65,7 +65,7 @@ def append_crate(display_name, root_module, deps, cfg=[], is_workspace_member=Tr [], is_proc_macro=True, ) - crates[-1]["proc_macro_dylib_path"] = "rust/libmacros.so" + crates[-1]["proc_macro_dylib_path"] = str((objtree / "rust/libmacros.so").resolve(True)) append_crate( "build_error",