enclose-io/compiler

View on GitHub
lts/tools/getarch.py

Summary

Maintainability
A
2 hrs
Test Coverage
from __future__ import print_function
from utils import GuessArchitecture
arch = GuessArchitecture()

# assume 64 bit unless set specifically
print(GuessArchitecture() \
    .replace('ia32', 'x64') \
    .replace('ppc', 'ppc64') \
    .replace('arm', 'arm64') \
    .replace('s390', 's390x'))