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>
Paolo Bonzini committed
Apr 29, 2026 at 10:36 UTC
aaac1f8229efaf1bd13ccdff1a88af142aebafe9
2 files changed
+1
-4
configure
-3
@@ -1740,9 +1740,6 @@ if test "$container_command" != ""; then
1740
echo "CONTAINER_COMMAND=$container_command" >> $config_host_mak
1741
fi
1742
echo "SUBDIRS=$subdirs" >> $config_host_mak
1743
-if test "$rust" != disabled; then
1744
- echo "RUST_TARGET_TRIPLE=$rust_target_triple" >> $config_host_mak
1745
-fi
1743
echo "PYTHON=$python" >> $config_host_mak
1744
echo "MKVENV_ENSUREGROUP=$mkvenv ensuregroup $mkvenv_online_flag" >> $config_host_mak
1745
echo "GENISOIMAGE=$genisoimage" >> $config_host_mak
meson.build
+1
-1
@@ -4747,7 +4747,7 @@ else
4747
endif
4748
summary_info += {'Rust support': have_rust}
4749
if have_rust
4750
- summary_info += {'Rust target': config_host['RUST_TARGET_TRIPLE']}
4750
+ summary_info += {'Rust target': rust.compiler_target(native: false)}
4751
summary_info += {'rustc': ' '.join(rustc.cmd_array())}
4752
summary_info += {'rustc version': rustc.version()}
4753
summary_info += {'rustdoc': rustdoc}