Rollup merge of #148367 - ChrisDenton:use-print-host, r=jieyouxu

Use --print host-tuple to get the host

`--print host-tuple` has been available since 1.84 so there's no longer a need to parse the output of `-vV`. Especially since this script is shipped with the toolchain.
This commit is contained in:
Matthias Krüger 2025-11-02 09:10:40 +01:00 committed by GitHub
commit beb2dde73a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,7 +4,7 @@
set -e
# Find the host triple so we can find lldb in rustlib.
host=$(rustc -vV | sed -n -e 's/^host: //p')
host=$(rustc --print host-tuple)
# Find out where to look for the pretty printer Python module
RUSTC_SYSROOT=$(rustc --print sysroot)