Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer arm64 over aarch64 internally. NFC #1246

Merged
merged 1 commit into from
Jun 27, 2023
Merged

Prefer arm64 over aarch64 internally. NFC #1246

merged 1 commit into from
Jun 27, 2023

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jun 27, 2023

This seems like more commonly known/used name for the architecture these days.

@sbc100 sbc100 requested a review from dschuff June 27, 2023 15:32
This seems like more commonly known/used name for the architecture
these days.
@sbc100 sbc100 enabled auto-merge (squash) June 27, 2023 16:14
Copy link
Member

@dschuff dschuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC uname -m and platform.machine() return aarch64 on Linux and arm64 on MacOS. Not sure about Windows. So we do have to keep handling both values, but I agree arm64 is more understandable for internal values.

@@ -141,12 +141,17 @@ def exit_with_error(msg):
elif machine.endswith('86'):
ARCH = 'x86'
elif machine.startswith('aarch64') or machine.lower().startswith('arm64'):
ARCH = 'aarch64'
if WINDOWS:
errlog('No support for Windows on Arm, fallback to x64')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would this actually work? i.e. does Windows ARM64 have automatic emulation the way MacOS does?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume so.. I just moved this code from below, I didn't create or change it.

@sbc100 sbc100 merged commit 1d59cd2 into main Jun 27, 2023
@sbc100 sbc100 deleted the arm64 branch June 27, 2023 20:46
shlomif pushed a commit to shlomif/emsdk that referenced this pull request Sep 29, 2023
This seems like more commonly known/used name for the architecture
these days.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants