aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorenami tsugutomo2015-04-24 15:27:38 +0900
committerMike McQuaid2015-04-24 18:26:42 +0100
commitd8631f2e3df5dd3de488feaaa3246ac5ca9a42f0 (patch)
tree00246b9237ffaf785bed54fb9e49284b260984e2 /Library/Homebrew
parentcf8760815a69fb68c3baf865f2ab955dfc104b1b (diff)
downloadhomebrew-d8631f2e3df5dd3de488feaaa3246ac5ca9a42f0.tar.bz2
hardware: correctly detect early 2015 MacBook Pro.
Closes #38996. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew')
-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 1113451f3..60de1eba8 100644
--- a/Library/Homebrew/os/mac/hardware.rb
+++ b/Library/Homebrew/os/mac/hardware.rb
@@ -44,6 +44,8 @@ module MacCPUs
:ivybridge
when 0x10B282DC # Haswell
:haswell
+ when 0x582ed09c # Broadwell
+ :broadwell
else
:dunno
end
diff --git a/Library/Homebrew/test/test_hardware.rb b/Library/Homebrew/test/test_hardware.rb
index 9f77349d1..95313583d 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]
+ families = [:core, :core2, :penryn, :nehalem, :arrandale, :sandybridge, :ivybridge, :haswell, :broadwell]
assert_includes families, Hardware::CPU.family
end if Hardware::CPU.intel?
end