diff --git a/meson.build b/meson.build index aecc381932..c85f964bed 100644 --- a/meson.build +++ b/meson.build @@ -71,7 +71,8 @@ if host_os == 'darwin' and \ objc = meson.get_compiler('objc') endif have_rust = false -if not get_option('rust').disabled() and add_languages('rust', required: get_option('rust'), native: false) +if not get_option('rust').disabled() and add_languages('rust', required: get_option('rust'), native: false) \ + and add_languages('rust', required: get_option('rust'), native: true) rustc = meson.get_compiler('rust') have_rust = true if rustc.version().version_compare('<1.80.0') diff --git a/rust/qemu-api-macros/meson.build b/rust/qemu-api-macros/meson.build index 48af91ed38..517b9a4d2d 100644 --- a/rust/qemu-api-macros/meson.build +++ b/rust/qemu-api-macros/meson.build @@ -1,5 +1,3 @@ -add_languages('rust', required: true, native: 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)