mac/hardware: cpu: Use ruby-macho's Intel constant
This commit is contained in:
parent
287659c200
commit
acbb213977
@ -9,7 +9,7 @@ module Hardware
|
|||||||
# Look in <mach/machine.h> for decoding info.
|
# Look in <mach/machine.h> for decoding info.
|
||||||
def type
|
def type
|
||||||
case sysctl_int("hw.cputype")
|
case sysctl_int("hw.cputype")
|
||||||
when 7
|
when MachO::Headers::CPU_TYPE_I386
|
||||||
:intel
|
:intel
|
||||||
when MachO::Headers::CPU_TYPE_ARM64
|
when MachO::Headers::CPU_TYPE_ARM64
|
||||||
:arm
|
:arm
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user