aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorilovezfs2016-02-03 04:06:08 -0800
committerMike McQuaid2016-02-03 21:10:01 +0000
commit37e423ebb2885f9f5799b9914357124b98e79643 (patch)
tree9e010b38d832b45ba1dfba4cc6ad19e4725009d4 /Library
parent051cd36046b3ab12806391f5d808e1702d08842b (diff)
downloadbrew-37e423ebb2885f9f5799b9914357124b98e79643.tar.bz2
os/mac/hardware: add Skylake CPU.
Closes Homebrew/homebrew#48781. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/os/mac/hardware.rb2
-rw-r--r--Library/Homebrew/test/test_hardware.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/os/mac/hardware.rb b/Library/Homebrew/os/mac/hardware.rb
index d4ce7a7e2..df1f7fab6 100644
--- a/Library/Homebrew/os/mac/hardware.rb
+++ b/Library/Homebrew/os/mac/hardware.rb
@@ -48,6 +48,8 @@ module MacCPUs
:haswell
when 0x582ed09c # Broadwell
:broadwell
+ when 0x37fc219f # Skylake
+ :skylake
else
:dunno
end
diff --git a/Library/Homebrew/test/test_hardware.rb b/Library/Homebrew/test/test_hardware.rb
index 7d1a256a9..d38c74df6 100644
--- a/Library/Homebrew/test/test_hardware.rb
+++ b/Library/Homebrew/test/test_hardware.rb
@@ -7,7 +7,7 @@ class HardwareTests < Homebrew::TestCase
end
def test_hardware_intel_family
- families = [:core, :core2, :penryn, :nehalem, :arrandale, :sandybridge, :ivybridge, :haswell, :broadwell]
+ families = [:core, :core2, :penryn, :nehalem, :arrandale, :sandybridge, :ivybridge, :haswell, :broadwell, :skylake]
assert_includes families, Hardware::CPU.family
end if Hardware::CPU.intel?
end