diff options
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/os/mac/hardware.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/os/mac/hardware.rb b/Library/Homebrew/os/mac/hardware.rb index e70ce7b8a..c5e803261 100644 --- a/Library/Homebrew/os/mac/hardware.rb +++ b/Library/Homebrew/os/mac/hardware.rb @@ -77,6 +77,11 @@ module MacCPUs type == :ppc && family != :g3 end + def avx? + pre_sandy = [:core, :core2, :penryn, :nehalem, :arrandale].include? family + type == :intel && !pre_sandy + end + def sse3? type == :intel end |
