mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-14 16:03:17 +00:00
Fix bootstrap.py uname error.
The x.py script fails with `ValueError: too many values to unpack (expected 3)` when uname -smp gives more than 3 words
This commit is contained in:
parent
910be1b3e8
commit
d68eea61c3
@ -256,7 +256,7 @@ def default_build_triple(verbose):
|
||||
if uname is None:
|
||||
return 'x86_64-pc-windows-msvc'
|
||||
|
||||
kernel, cputype, processor = uname.decode(default_encoding).split()
|
||||
kernel, cputype, processor = uname.decode(default_encoding).split(maxsplit=2)
|
||||
|
||||
# The goal here is to come up with the same triple as LLVM would,
|
||||
# at least for the subset of platforms we're willing to target.
|
||||
|
Loading…
Reference in New Issue
Block a user