diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/os/linux/hardware/cpu.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/os/linux/hardware/cpu.rb b/Library/Homebrew/extend/os/linux/hardware/cpu.rb index 9d779f789..4c8aa3f42 100644 --- a/Library/Homebrew/extend/os/linux/hardware/cpu.rb +++ b/Library/Homebrew/extend/os/linux/hardware/cpu.rb @@ -12,6 +12,8 @@ module Hardware def type @type ||= if cpuinfo =~ /Intel|AMD/ :intel + elsif cpuinfo =~ /ARM|Marvell/ + :arm else :dunno end @@ -71,7 +73,7 @@ module Hardware end def flags - @flags ||= cpuinfo[/^flags.*/, 0].split + @flags ||= cpuinfo[/^(flags|Features).*/, 0].split end # Compatibility with Mac method, which returns lowercase symbols |
