aboutsummaryrefslogtreecommitdiff
path: root/scripts/rust/rustc_args.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-10-03 16:28:45 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2024-10-11 12:32:17 +0200
commit1a6ef6ff624f0e485bf17210ad34d387a953b288 (patch)
treedb9833b532052b095426739692fbc5ab46787227 /scripts/rust/rustc_args.py
parent764a6ee9feb428a9759eaa94673285fad2586f11 (diff)
downloadqemu-1a6ef6ff624f0e485bf17210ad34d387a953b288.zip
qemu-1a6ef6ff624f0e485bf17210ad34d387a953b288.tar.gz
qemu-1a6ef6ff624f0e485bf17210ad34d387a953b288.tar.bz2
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>
Diffstat (limited to 'scripts/rust/rustc_args.py')
0 files changed, 0 insertions, 0 deletions