Skip to content

Commit

Permalink
Fix bootstrap.py uname error.
Browse files Browse the repository at this point in the history
The x.py script fails with `ValueError: too many values to unpack (expected 3)` when uname -smp gives more than 3 words
  • Loading branch information
edg-l committed Jul 12, 2023
1 parent 910be1b commit d68eea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d68eea6

Please sign in to comment.