rusticl: use rust.proc_macro for proc macros

Should fix a few issues in regards to cross compilation and maybe other
things. This requires meson-1.3.

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26636>
This commit is contained in:
Karol Herbst 2023-12-11 16:35:07 +01:00 committed by Marge Bot
parent 280dde8c23
commit 8af15359e3

View file

@ -404,10 +404,9 @@ libmesa_rust = static_library(
]
)
rusticl_proc_macros = shared_library(
rusticl_proc_macros = rust.proc_macro(
'rusticl_proc_macros',
[rusticl_proc_macros_files],
rust_crate_type : 'proc-macro',
rust_args : [
rusticl_args,
],