[PATCH] rust: fix --enable-debug-mutex

Paolo Bonzini posted 1 patch 4 days, 1 hour ago
rust/qemu-api/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] rust: fix --enable-debug-mutex
Posted by Paolo Bonzini 4 days, 1 hour ago
--feature is an option for cargo but not for rustc.

Reported-by: Bernhard Beschow <shentey@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 rust/qemu-api/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rust/qemu-api/meson.build b/rust/qemu-api/meson.build
index bb779364cb2..0c08d2e51f5 100644
--- a/rust/qemu-api/meson.build
+++ b/rust/qemu-api/meson.build
@@ -7,7 +7,7 @@ if rustc.version().version_compare('>=1.77.0')
   _qemu_api_cfg += ['--cfg', 'has_offset_of']
 endif
 if get_option('debug_mutex')
-  _qemu_api_cfg += ['--feature', 'debug_cell']
+  _qemu_api_cfg += ['--cfg', 'feature="debug_cell"']
 endif
 
 _qemu_api_rs = static_library(
-- 
2.47.1
Re: [PATCH] rust: fix --enable-debug-mutex
Posted by Bernhard Beschow 3 days, 18 hours ago

Am 19. Dezember 2024 15:37:28 UTC schrieb Paolo Bonzini <pbonzini@redhat.com>:
>--feature is an option for cargo but not for rustc.
>
>Reported-by: Bernhard Beschow <shentey@gmail.com>
>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>---
> rust/qemu-api/meson.build | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/rust/qemu-api/meson.build b/rust/qemu-api/meson.build
>index bb779364cb2..0c08d2e51f5 100644
>--- a/rust/qemu-api/meson.build
>+++ b/rust/qemu-api/meson.build
>@@ -7,7 +7,7 @@ if rustc.version().version_compare('>=1.77.0')
>   _qemu_api_cfg += ['--cfg', 'has_offset_of']
> endif
> if get_option('debug_mutex')
>-  _qemu_api_cfg += ['--feature', 'debug_cell']
>+  _qemu_api_cfg += ['--cfg', 'feature="debug_cell"']
> endif
> 
> _qemu_api_rs = static_library(

Reviewed-by: Bernhard Beschow <shentey@gmail.com>