Skip to content

Commit acc8dec

Browse files
authored
Merge pull request #4014 from boegel/arm64
correctly identify Apple Silicon M1 as Arm 64-bit by also considering arm64 next to aarch64
2 parents afe4fcd + f9af903 commit acc8dec

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

easybuild/tools/systemtools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def get_cpu_architecture():
320320
:return: a value from the CPU_ARCHITECTURES list
321321
"""
322322
aarch32_regex = re.compile("arm.*")
323-
aarch64_regex = re.compile("aarch64.*")
323+
aarch64_regex = re.compile("(aarch64|arm64).*")
324324
power_regex = re.compile("ppc64.*")
325325
riscv32_regex = re.compile("riscv32.*")
326326
riscv64_regex = re.compile("riscv64.*")

test/framework/systemtools.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,7 @@ def test_cpu_architecture(self):
566566
machine_names = {
567567
'aarch64': AARCH64,
568568
'aarch64_be': AARCH64,
569+
'arm64': AARCH64,
569570
'armv7l': AARCH32,
570571
'ppc64': POWER,
571572
'ppc64le': POWER,

0 commit comments

Comments
 (0)