Auto merge of #34597 - CensoredUsername:bootstrap-fix, r=alexcrichton
Support more python 2.7 versions in bootstrap.py It seems python broke compatability between 2.7.9 and 2.7.12 as on the former a WindowsError was raised while on the latter a subprocess.CalledProcessError was raised while testing for the existence of uname. As a WindowsError being thrown obviously indicates we're running on windows, this should probably be accepted too.
This commit is contained in:
commit
d9e8a67894
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ class RustBuild:
|
||||||
try:
|
try:
|
||||||
ostype = subprocess.check_output(['uname', '-s']).strip()
|
ostype = subprocess.check_output(['uname', '-s']).strip()
|
||||||
cputype = subprocess.check_output(['uname', '-m']).strip()
|
cputype = subprocess.check_output(['uname', '-m']).strip()
|
||||||
except subprocess.CalledProcessError:
|
except (subprocess.CalledProcessError, WindowsError):
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
return 'x86_64-pc-windows-msvc'
|
return 'x86_64-pc-windows-msvc'
|
||||||
err = "uname not found"
|
err = "uname not found"
|
||||||
|
|
Loading…
Add table
Reference in a new issue