Skip to content

correctly identify Apple Silicon M1 as Arm 64-bit by also considering arm64 next to aarch64#4014

Merged
ocaisa merged 1 commit intoeasybuilders:developfrom
boegel:arm64
May 30, 2022
Merged

correctly identify Apple Silicon M1 as Arm 64-bit by also considering arm64 next to aarch64#4014
ocaisa merged 1 commit intoeasybuilders:developfrom
boegel:arm64

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented May 30, 2022

No description provided.

@boegel boegel added the bug fix label May 30, 2022
@boegel boegel added this to the 4.5.5 milestone May 30, 2022
@ocaisa
Copy link
Copy Markdown
Member

ocaisa commented May 30, 2022

Code looks ok, I have no way of checking this though so I'm going on faith alone

@ocaisa ocaisa merged commit acc8dec into easybuilders:develop May 30, 2022
@boegel boegel deleted the arm64 branch May 30, 2022 13:46
@boegel
Copy link
Copy Markdown
Member Author

boegel commented May 30, 2022

Just to clarify: without this change, I was getting AArch32 as a result from get_cpu_architecture on Apple M1:

$ python3 -c 'from easybuild.tools.systemtools import get_cpu_architecture; print(get_cpu_architecture())'
AArch32

with these changes, I'm getting AArch64, as it should be:

$ python3 -c 'from easybuild.tools.systemtools import get_cpu_architecture; print(get_cpu_architecture())'
AArch64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants