fix portability issue in error handling of build_triple
This commit is contained in:
parent
4a618fee1e
commit
3807e1f393
@ -315,7 +315,7 @@ class RustBuild(object):
|
||||
try:
|
||||
ostype = subprocess.check_output(['uname', '-s']).strip().decode(default_encoding)
|
||||
cputype = subprocess.check_output(['uname', '-m']).strip().decode(default_encoding)
|
||||
except subprocess.CalledProcessError:
|
||||
except (subprocess.CalledProcessError, OSError):
|
||||
if sys.platform == 'win32':
|
||||
return 'x86_64-pc-windows-msvc'
|
||||
err = "uname not found"
|
||||
|
Loading…
Reference in New Issue
Block a user