]> www.infradead.org Git - users/dwmw2/qemu.git/commit
rust: add --rust-target option for bindgen
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 6 Feb 2025 11:15:13 +0000 (12:15 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 6 Feb 2025 18:51:46 +0000 (13:51 -0500)
commit131c58469f6fb68c89b38fee6aba8bbb20c7f4bf
tree1c6999f3cc17939dcbbe65f593cb53bfe0e6ad80
parentd922088eb4ba6bc31a99f17b32cf75e59dd306cd
rust: add --rust-target option for bindgen

Without it, recent bindgen will give an error

   error: extern block cannot be declared unsafe

if rustc is not new enough to support the "unsafe extern" construct.

Cc: qemu-rust@nongnu.org
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20250206111514.2134895-1-pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
meson.build