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:
Edgar Luque 2023-07-12 11:49:00 +02:00
parent 910be1b3e8
commit d68eea61c3
No known key found for this signature in database
GPG key ID: 70ADAE8F35904387

View file

@ -256,7 +256,7 @@ def default_build_triple(verbose):
if uname is None: if uname is None:
return 'x86_64-pc-windows-msvc' 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, # 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. # at least for the subset of platforms we're willing to target.