aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorShaun Jackman2017-03-10 10:20:30 -0800
committerShaun Jackman2017-03-10 10:30:11 -0800
commitc6cbf9590d897db7cff7f2f81863ae34ccc947ed (patch)
tree714a758bb5ecb8892a6e39df6754627cfdd254d5 /Library
parentb38c52f930ad5736518dff54f135674347a4a222 (diff)
downloadbrew-c6cbf9590d897db7cff7f2f81863ae34ccc947ed.tar.bz2
linux: Add ARM to CPU.type
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/os/linux/hardware/cpu.rb4
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