rdp / os

The OS gem allows for some easy telling if you’re on windows or not. OS.windows? as well as some other helper utilities
MIT License
145 stars 33 forks source link

AARCH64 Detection on Mac & Linux How To? #50

Closed AMaleh closed 2 years ago

AMaleh commented 3 years ago

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 commented 3 years ago

Or welcome! :)

On Thursday, July 1, 2021, AMaleh @.***> wrote:

Is there any support for detecting AARCH64 on Mac & Linux yet? If not, would you have any tips on how to figure that out using this gem (or some other ways)?

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

Best,

AMaleh

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.< https://ci6.googleusercontent.com/proxy/csz9jgUrAQTcN9Mg9B-AB1ayUpVe_ap8kSRMp1oOShpzCGweGekYkgvk1fNqY2dm-Ln7bg6d0aB2vqcG0kN0MPJI0WORqzsMTjgTfG2e-xwnpyhHAcTB0WnFI0EQIwPpPYVHrQlZFxLiHmFdMOC2weeVe7DavrYqJYVf5hE06TIGbMmUYFUotwDuumEKmnCtPzo13wWeZB6Z7VPMR8Zj2ELUT4k=s0-d-e1-ft#https://github.com/notifications/beacon/AAADBUDE27YYDHN7CGMDWEDTVTPAHA5CNFSM47VQXJQKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4N56TRIA.gif>

rdp commented 2 years ago

*PR welcome :)

On Friday, August 27, 2021, Roger Pack @.***> wrote:

Or welcome! :)

On Thursday, July 1, 2021, AMaleh @.***> wrote:

Is there any support for detecting AARCH64 on Mac & Linux yet? If not, would you have any tips on how to figure that out using this gem (or some other ways)?

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

Best,

AMaleh

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.< https://ci6.googleusercontent.com/proxy/csz9jgUrAQTcN9Mg9B-AB1ayUpVe_ap8kSRMp1oOShpzCGweGekYkgvk1fNqY2dm-Ln7bg6d0aB2vqcG0kN0MPJI0WORqzsMTjgTfG2e-xwnpyhHAcTB0WnFI0EQIwPpPYVHrQlZFxLiHmFdMOC2weeVe7DavrYqJYVf5hE06TIGbMmUYFUotwDuumEKmnCtPzo13wWeZB6Z7VPMR8Zj2ELUT4k=s0-d-e1-ft#https://github.com/notifications/beacon/AAADBUDE27YYDHN7CGMDWEDTVTPAHA5CNFSM47VQXJQKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4N56TRIA.gif>

AMaleh commented 2 years ago

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.