]> git.ipfire.org Git - thirdparty/qemu.git/commit
configure, meson: detect Rust toolchain
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 3 Oct 2024 13:28:45 +0000 (16:28 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Oct 2024 10:32:17 +0000 (12:32 +0200)
commit1a6ef6ff624f0e485bf17210ad34d387a953b288
treedb9833b532052b095426739692fbc5ab46787227
parent764a6ee9feb428a9759eaa94673285fad2586f11
configure, meson: detect Rust toolchain

Include the correct path and arguments to rustc in the native
and cross files (native compilation is needed for procedural
macros).

Based on the host architecture and OS, the compiler and optionally the argument
to --cpu, the Rust target triple can be detected automatically for either a
native or a cross compiler.

In general, it is only a matter of translating the architecture and OS, and
adding a machine to form the triple, but there are some special cases (e.g.
detecting soft vs. hard floating point on ARM) and some inconsistencies.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Link: https://lore.kernel.org/r/207d2640b32d511e9c27478ce3192f5bb0bf3169.1727961605.git.manos.pitsidianakis@linaro.org
[Leave disabled by default until CI covers the Rust code on supported
 distros. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure
meson.build