Skip to content

Commit 3f6761b

Browse files
authored
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.
2 parents fb41a57 + 82140c1 commit 3f6761b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/etc/rust-lldb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
set -e
55

66
# Find the host triple so we can find lldb in rustlib.
7-
host=$(rustc -vV | sed -n -e 's/^host: //p')
7+
host=$(rustc --print host-tuple)
88

99
# Find out where to look for the pretty printer Python module
1010
RUSTC_SYSROOT=$(rustc --print sysroot)

0 commit comments

Comments
 (0)