From: Marc-André Lureau <[email protected]>

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

diff --git a/configure b/configure
index 66613f3f4c..32eb313941 100755
--- a/configure
+++ b/configure
@@ -1878,6 +1878,12 @@ if test "$skip_meson" = no; then
       eval "c=\$devices_${a}"
       echo "${a}-softmmu = '$c'" >> $cross
   done
+  if test "$rust" != disabled; then
+      if test "$cross_compile" = "yes"; then
+          # it's actually a clang target triple, but they should be same
+          echo "bindgen_clang_arguments = [$(meson_quote 
--target="$rust_target_triple")]" >> $cross
+      fi
+  fi
 
   echo "[built-in options]" >> $cross
   echo "c_args = [$(meson_quote $CFLAGS $EXTRA_CFLAGS)]" >> $cross
-- 
2.51.0


Reply via email to