chore: get target arch from TARGET_ARCH env var

This commit is contained in:
Samuel Attard 2018-09-29 14:13:17 +10:00
parent d6500244a4
commit adc60a72ca
No known key found for this signature in database
GPG key ID: E89DDE5742D58C4E
2 changed files with 5 additions and 11 deletions

View file

@ -35,17 +35,10 @@ def get_platform_key():
def get_target_arch():
try:
target_arch_path = os.path.join(__file__, '..', '..', '..', 'vendor',
'download', 'libchromiumcontent',
'.target_arch')
with open(os.path.normpath(target_arch_path)) as f:
return f.read().strip()
except IOError as e:
if e.errno != errno.ENOENT:
raise
return 'x64'
arch = os.environ.get('TARGET_ARCH')
if arch is None:
return 'x64'
return arch
def get_env_var(name):