git » rust-bindgen.git » commit cf3b80c

Simplify host tuple detection

author Caleb Maclennan
2025-12-13 15:21:30 UTC
committer Caleb Maclennan
2025-12-13 15:21:30 UTC
parent 518258cadfe0991feadd9e7689ce33c6110064f5

Simplify host tuple detection

PKGBUILD +1 -1

diff --git a/PKGBUILD b/PKGBUILD
index a4db359..5bfb782 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,7 +16,7 @@ sha512sums=('b280e9386d2f1baae9c78ae0572bc7f807d59752812abb55742d1232cbb647c5c1d
 
 prepare() {
   cd $pkgname-$pkgver
-  cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
+  cargo fetch --locked --target "$(rustc --print host-tuple)"
   mkdir -p completions
 }