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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue