diff options
| author | Mike McQuaid | 2017-03-11 08:26:53 +0000 |
|---|---|---|
| committer | GitHub | 2017-03-11 08:26:53 +0000 |
| commit | 8518b6c4f74c1de2676019b266092921a30d4a76 (patch) | |
| tree | ad34a2d462f950b7a2d3bfd95dc7e0bedc0439a5 /Library | |
| parent | 0cff5999ee63d9c30a4495698689c77fe91afd7c (diff) | |
| parent | c6cbf9590d897db7cff7f2f81863ae34ccc947ed (diff) | |
| download | brew-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.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 |
