From c6cbf9590d897db7cff7f2f81863ae34ccc947ed Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Fri, 10 Mar 2017 10:20:30 -0800 Subject: linux: Add ARM to CPU.type --- Library/Homebrew/extend/os/linux/hardware/cpu.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3