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

AARCH64 Detection on Mac & Linux How To? #50

Closed
AMaleh opened this issue Jul 1, 2021 · 3 comments
Closed

AARCH64 Detection on Mac & Linux How To? #50

AMaleh opened this issue Jul 1, 2021 · 3 comments

Comments

@AMaleh
Copy link

AMaleh commented Jul 1, 2021

Is there any support for detecting AARCH64 on Mac & Linux yet (was hoping for a OS.aarch64? method)? If not, would you have any tips on how to figure that out using this gem or some other ways (I noticed OS.host_cpu returns what I likely need, but I'm on a non-AARCH64 computer right now, so I'd have to test later on an AARCH64 machine)?

Thanks for providing such a useful and API friendly gem. I have been using on and off for over a decade.

Best,

AMaleh

@rdp
Copy link
Owner

rdp commented Aug 28, 2021 via email

@rdp
Copy link
Owner

rdp commented Oct 29, 2021 via email

@AMaleh
Copy link
Author

AMaleh commented Jan 25, 2022

Hi,

I was able to use code like the following successfully on ARM64 Mac and AARCH64 Linux:

OS.host_cpu.include?('aarch64') || OS.host_cpu.include?('arm64')

This is resolved for me as such.

Thank you.

@AMaleh AMaleh closed this as completed Jan 25, 2022
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

No branches or pull requests

2 participants