We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a618fe commit 3807e1fCopy full SHA for 3807e1f
src/bootstrap/bootstrap.py
@@ -315,7 +315,7 @@ def build_triple(self):
315
try:
316
ostype = subprocess.check_output(['uname', '-s']).strip().decode(default_encoding)
317
cputype = subprocess.check_output(['uname', '-m']).strip().decode(default_encoding)
318
- except subprocess.CalledProcessError:
+ except (subprocess.CalledProcessError, OSError):
319
if sys.platform == 'win32':
320
return 'x86_64-pc-windows-msvc'
321
err = "uname not found"
0 commit comments