Welcome to mirror list, hosted at ThFree Co, Russian Federation.

getarch.py « tools - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3c3665254633404a8bb6661e30c5f070b396e700 (plain)
1
2
3
4
5
6
7
8
9
10
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'))