aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-03-11 08:26:53 +0000
committerGitHub2017-03-11 08:26:53 +0000
commit8518b6c4f74c1de2676019b266092921a30d4a76 (patch)
treead34a2d462f950b7a2d3bfd95dc7e0bedc0439a5 /Library
parent0cff5999ee63d9c30a4495698689c77fe91afd7c (diff)
parentc6cbf9590d897db7cff7f2f81863ae34ccc947ed (diff)
downloadbrew-8518b6c4f74c1de2676019b266092921a30d4a76.tar.bz2
Merge pull request #2307 from sjackman/linux-cpu-arm
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