On 9/19/25 15:33, [email protected] wrote:
From: Marc-André Lureau <[email protected]>

IIRC, this fixes build on msys2 - although I can't reproduce. Maybe with
some other host, on *bsd?

Signed-off-by: Marc-André Lureau <[email protected]>
---
  configure | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 32eb313941..c2f4534964 100755
--- a/configure
+++ b/configure
@@ -1205,7 +1205,7 @@ if test "$rust" != disabled && test -z 
"$rust_target_triple"; then
    # arch and os generally matches between meson and rust
    rust_arch=$host_arch
    rust_os=$host_os
-  rust_machine=unknown
+  rust_machine=$(echo $rust_host_triple | cut -d- -f2)
In theory the machine, when not unknown, should be computed in the case statement(s) below. I remember I checked against "rustc --print target-list" but I could have missed some.

Paolo


Reply via email to