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>
This commit is contained in:
Paolo Bonzini 2026-04-29 10:36:52 +02:00
parent 530a9eb2c6
commit aaac1f8229
2 changed files with 1 additions and 4 deletions

3
configure vendored
View file

@ -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

View file

@ -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}