From d68eea61c3e3d249602d66d28e8f6dbd76e7c30f Mon Sep 17 00:00:00 2001 From: Edgar Luque Date: Wed, 12 Jul 2023 11:49:00 +0200 Subject: [PATCH] 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 --- src/bootstrap/bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 149350e62a014..e5a710c0a9646 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -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.