On Wed, Aug 28, 2024 at 2:28 PM Daniel P. Berrangé <berra...@redhat.com> wrote: > > +if test "$rust" != disabled && test -z "$rust_target_triple"; then > > + rust_target_triple=$rust_host_triple > > +fi > > Defaulting to the $rust_host_triple is incorrect when QEMU has been > told to build for a non-host target. > > Either we need todo the right thing and auto-set rust target based > on QEMU target (preferred), or we need to make it a fatal error > when rust target is omitted & QEMU is building a non-host target.
I already have a patch to autodetect the right triple, but I didn't have time to finish it (and send it to Manos) before disappearing on vacation. I think it's okay to initially require --rust-target-triple= for cross compilation. Paolo