Skip to content

Commit d68eea6

Browse files
committed
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
1 parent 910be1b commit d68eea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/bootstrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def default_build_triple(verbose):
256256
if uname is None:
257257
return 'x86_64-pc-windows-msvc'
258258

259-
kernel, cputype, processor = uname.decode(default_encoding).split()
259+
kernel, cputype, processor = uname.decode(default_encoding).split(maxsplit=2)
260260

261261
# The goal here is to come up with the same triple as LLVM would,
262262
# at least for the subset of platforms we're willing to target.

0 commit comments

Comments
 (0)