mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
remove ppc and s390 from the host_arch list
We only support ppc64 and s390x. Change-Id: I1ec46bbfc0bdd266b84336e5af46b0503efd4751 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7100932 Auto-Submit: Milad Farazmand <mfarazma@ibm.com> Commit-Queue: Gavin Mak <gavinmak@google.com> Reviewed-by: Gavin Mak <gavinmak@google.com> Reviewed-by: Brian Ryner <bryner@google.com>
This commit is contained in:
@@ -29,15 +29,13 @@ def HostArch():
|
|||||||
elif host_arch.startswith('mips'):
|
elif host_arch.startswith('mips'):
|
||||||
host_arch = 'mips'
|
host_arch = 'mips'
|
||||||
elif host_arch.startswith('ppc') or host_processor == 'powerpc':
|
elif host_arch.startswith('ppc') or host_processor == 'powerpc':
|
||||||
host_arch = 'ppc'
|
host_arch = 'ppc64'
|
||||||
elif host_arch.startswith('s390'):
|
elif host_arch.startswith('s390') or platform.system() == 'OS/390':
|
||||||
host_arch = 's390'
|
host_arch = 's390x'
|
||||||
elif host_arch.startswith('riscv'):
|
elif host_arch.startswith('riscv'):
|
||||||
host_arch = 'riscv64'
|
host_arch = 'riscv64'
|
||||||
elif host_arch.startswith('loongarch64'):
|
elif host_arch.startswith('loongarch64'):
|
||||||
host_arch = 'loong64'
|
host_arch = 'loong64'
|
||||||
elif platform.system() == 'OS/390':
|
|
||||||
host_arch = 's390x'
|
|
||||||
|
|
||||||
if host_arch == 'arm64':
|
if host_arch == 'arm64':
|
||||||
host_platform = platform.architecture()
|
host_platform = platform.architecture()
|
||||||
|
|||||||
@@ -38,9 +38,9 @@ class DetectHostArchTest(unittest.TestCase):
|
|||||||
('arm64', 'ARMv8 (64-bit) Family', ['32bit', 'WindowsPE'], 'x64'),
|
('arm64', 'ARMv8 (64-bit) Family', ['32bit', 'WindowsPE'], 'x64'),
|
||||||
('mips64', '', [''], 'mips64'),
|
('mips64', '', [''], 'mips64'),
|
||||||
('mips', '', [''], 'mips'),
|
('mips', '', [''], 'mips'),
|
||||||
('ppc', '', [''], 'ppc'),
|
('ppc64', '', [''], 'ppc64'),
|
||||||
('foo', 'powerpc', [''], 'ppc'),
|
('foo', 'powerpc', [''], 'ppc64'),
|
||||||
('s390', '', [''], 's390'),
|
('s390x', '', [''], 's390x'),
|
||||||
]
|
]
|
||||||
|
|
||||||
for machine, processor, arch, expected in test_cases:
|
for machine, processor, arch, expected in test_cases:
|
||||||
|
|||||||
Reference in New Issue
Block a user