Merge pull request #5788 from sjackman/aarch64

Fix Hardware::CPU.arm? for aarch64
This commit is contained in:
Shaun Jackman 2019-02-21 21:55:43 -08:00 committed by GitHub
commit 9c01afd15a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ module Hardware
def type def type
case RUBY_PLATFORM case RUBY_PLATFORM
when /x86_64/, /i\d86/ then :intel when /x86_64/, /i\d86/ then :intel
when /arm/ then :arm when /arm/, /aarch64/ then :arm
when /ppc\d+/ then :ppc when /ppc\d+/ then :ppc
else :dunno else :dunno
end end