Re: [PATCH] rust: add --rust-target option for bindgen

2025-02-08 Thread Stefan Hajnoczi
I merged this directly into qemu.git/master. Stefan

Re: [PATCH] rust: add --rust-target option for bindgen

2025-02-06 Thread Philippe Mathieu-Daudé
On 6/2/25 12:15, Paolo Bonzini wrote: 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-r...@nongnu.org Cc: qemu-sta...@nongnu.org Signed-off-by: Paolo Bonzini --- mes

Re: [PATCH] rust: add --rust-target option for bindgen

2025-02-06 Thread Philippe Mathieu-Daudé
On 6/2/25 12:38, Paolo Bonzini wrote: On Thu, Feb 6, 2025 at 12:37 PM Philippe Mathieu-Daudé wrote: if bindgen.version().version_compare('<0.61.0') # default in 0.61+ bindgen_args += ['--size_t-is-usize'] Should this be merged directly on master as build-fix? If it's brea

Re: [PATCH] rust: add --rust-target option for bindgen

2025-02-06 Thread Paolo Bonzini
On Thu, Feb 6, 2025 at 12:37 PM Philippe Mathieu-Daudé wrote: > > if bindgen.version().version_compare('<0.61.0') > > # default in 0.61+ > > bindgen_args += ['--size_t-is-usize'] > > Should this be merged directly on master as build-fix? If it's breaking CI I can send a pull reque

[PATCH] rust: add --rust-target option for bindgen

2025-02-06 Thread Paolo Bonzini
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-r...@nongnu.org Cc: qemu-sta...@nongnu.org Signed-off-by: Paolo Bonzini --- meson.build | 3 +++ 1 file changed, 3 insert