]> git.ipfire.org Git - thirdparty/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)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 8 Feb 2025 13:14:52 +0000 (16:14 +0300)
commit237831f9ad215f6f4568661af7b83d7f16e893c9
tree1f82dc31a526d986cb8c3f897146328dcbcdd539
parentcac3fb4414778eab741a5e58ca0a30f1edc9528a
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>
(cherry picked from commit 131c58469f6fb68c89b38fee6aba8bbb20c7f4bf)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
meson.build