Re: [PATCH] meson: check in main meson.build for native Rust compiler

2024-10-14 Thread Peter Maydell
On Mon, 14 Oct 2024 at 15:36, Paolo Bonzini wrote: > > A working native Rust compiler is always needed in order to compile Rust > code, even when cross compiling, in order to build the procedural macros > that QEMU uses. > > Right now, the check is done in rust/qemu-api-macros/meson.build, but thi

Re: [PATCH] meson: check in main meson.build for native Rust compiler

2024-10-14 Thread Paolo Bonzini
On Mon, Oct 14, 2024 at 4:41 PM Peter Maydell wrote: > > On Mon, 14 Oct 2024 at 15:38, Peter Maydell wrote: > > > > On Mon, 14 Oct 2024 at 15:36, Paolo Bonzini wrote: > > > > > > A working native Rust compiler is always needed in order to compile Rust > > > code, even when cross compiling, in or

Re: [PATCH] meson: check in main meson.build for native Rust compiler

2024-10-14 Thread Peter Maydell
On Mon, 14 Oct 2024 at 15:38, Peter Maydell wrote: > > On Mon, 14 Oct 2024 at 15:36, Paolo Bonzini wrote: > > > > A working native Rust compiler is always needed in order to compile Rust > > code, even when cross compiling, in order to build the procedural macros > > that QEMU uses. > > > > Right

Re: [PATCH] meson: check in main meson.build for native Rust compiler

2024-10-14 Thread Peter Maydell
On Mon, 14 Oct 2024 at 15:36, Paolo Bonzini wrote: > > A working native Rust compiler is always needed in order to compile Rust > code, even when cross compiling, in order to build the procedural macros > that QEMU uses. > > Right now, the check is done in rust/qemu-api-macros/meson.build, but thi

[PATCH] meson: check in main meson.build for native Rust compiler

2024-10-14 Thread Paolo Bonzini
A working native Rust compiler is always needed in order to compile Rust code, even when cross compiling, in order to build the procedural macros that QEMU uses. Right now, the check is done in rust/qemu-api-macros/meson.build, but this has two disadvantages. First, it makes the build fail when t