Commit aaac1f8229 for qemu.org

commit aaac1f8229efaf1bd13ccdff1a88af142aebafe9
Author: Paolo Bonzini <pbonzini@redhat.com>
Date:   Wed Apr 29 10:36:52 2026 +0200

    meson: use compiler_target() to get rustc target

    The new method in Meson 1.11.x removes the need to pass the triple
    via config-host.mak.

    Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

diff --git a/configure b/configure
index 7f637c018c..56158cd95f 100755
--- a/configure
+++ b/configure
@@ -1740,9 +1740,6 @@ if test "$container_command" != ""; then
     echo "CONTAINER_COMMAND=$container_command" >> $config_host_mak
 fi
 echo "SUBDIRS=$subdirs" >> $config_host_mak
-if test "$rust" != disabled; then
-  echo "RUST_TARGET_TRIPLE=$rust_target_triple" >> $config_host_mak
-fi
 echo "PYTHON=$python" >> $config_host_mak
 echo "MKVENV_ENSUREGROUP=$mkvenv ensuregroup $mkvenv_online_flag" >> $config_host_mak
 echo "GENISOIMAGE=$genisoimage" >> $config_host_mak
diff --git a/meson.build b/meson.build
index 2139dfc7ce..2593eb9762 100644
--- a/meson.build
+++ b/meson.build
@@ -4747,7 +4747,7 @@ else
 endif
 summary_info += {'Rust support':      have_rust}
 if have_rust
-  summary_info += {'Rust target':     config_host['RUST_TARGET_TRIPLE']}
+  summary_info += {'Rust target':     rust.compiler_target(native: false)}
   summary_info += {'rustc':           ' '.join(rustc.cmd_array())}
   summary_info += {'rustc version':   rustc.version()}
   summary_info += {'rustdoc':         rustdoc}