Skip to contentSkip to conversation

rust: fix --enable-debug-mutex

PATCH In review Paolo Bonzini 2 participants 2 messages Dec 19, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rust: fix --enable-debug-mutex

--feature is an option for cargo but not for rustc.

---
 rust/qemu-api/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/qemu-api/meson.build +1 -1
index bb779364cb2..0c08d2e51f5 100644
@@ -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(
Signature · 1 line
2.47.1
Reviewed-by on v1 1/1
#1 lore raw

Am 19. Dezember 2024 15:37:28 UTC schrieb Paolo Bonzini <[email protected]>:

Quoted 20 lines

--feature is an option for cargo but not for rustc.

---
rust/qemu-api/meson.build | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
rust/qemu-api/meson.build +0 -0
index bb779364cb2..0c08d2e51f5 100644
@@ -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')

rust/qemu-api/meson.build +1 -1
-  _qemu_api_cfg += ['--feature', 'debug_cell']
+  _qemu_api_cfg += ['--cfg', 'feature="debug_cell"']

endif

Quoted 1 line

_qemu_api_rs = static_library(