[PATCH] rust: qemu-api-macros: always process subprojects before dependencies

Paolo Bonzini posted 1 patch 2 weeks, 2 days ago
rust/qemu-api-macros/meson.build | 4 ++++
1 file changed, 4 insertions(+)
[PATCH] rust: qemu-api-macros: always process subprojects before dependencies
Posted by Paolo Bonzini 2 weeks, 2 days ago
Avoid looking for Rust dependencies via cmake.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 rust/qemu-api-macros/meson.build | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/rust/qemu-api-macros/meson.build b/rust/qemu-api-macros/meson.build
index 24325dea5c2..6f94a4bb3c2 100644
--- a/rust/qemu-api-macros/meson.build
+++ b/rust/qemu-api-macros/meson.build
@@ -1,3 +1,7 @@
+subproject('proc-macro2-1-rs', required: true)
+subproject('quote-1-rs', required: true)
+subproject('syn-2-rs', required: true)
+
 quote_dep = dependency('quote-1-rs', native: true)
 syn_dep = dependency('syn-2-rs', native: true)
 proc_macro2_dep = dependency('proc-macro2-1-rs', native: true)
-- 
2.47.0
Re: [PATCH] rust: qemu-api-macros: always process subprojects before dependencies
Posted by Junjie Mao 2 weeks, 1 day ago
Paolo Bonzini <pbonzini@redhat.com> writes:

> Avoid looking for Rust dependencies via cmake.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Reviewed-by: Junjie Mao <junjie.mao@hotmail.com>

> ---
>  rust/qemu-api-macros/meson.build | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/rust/qemu-api-macros/meson.build b/rust/qemu-api-macros/meson.build
> index 24325dea5c2..6f94a4bb3c2 100644
> --- a/rust/qemu-api-macros/meson.build
> +++ b/rust/qemu-api-macros/meson.build
> @@ -1,3 +1,7 @@
> +subproject('proc-macro2-1-rs', required: true)
> +subproject('quote-1-rs', required: true)
> +subproject('syn-2-rs', required: true)
> +
>  quote_dep = dependency('quote-1-rs', native: true)
>  syn_dep = dependency('syn-2-rs', native: true)
>  proc_macro2_dep = dependency('proc-macro2-1-rs', native: true)