aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorWilliam Woodruff2016-06-17 20:41:08 -0400
committerMartin Afanasjew2016-06-20 23:36:18 +0200
commitf3a6385c8cfe867811d539ab1506198f3f6048dd (patch)
tree773b7230c1855e894a41e89e50285679f34cf10d /Library
parent27e489e4c04a7523e81ad5467e2601b7d2b399e1 (diff)
downloadbrew-f3a6385c8cfe867811d539ab1506198f3f6048dd.tar.bz2
ruby_mach: Update cputype case block.
MachOFile#cputype now returns a Symbol.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/os/mac/ruby_mach.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Homebrew/os/mac/ruby_mach.rb b/Library/Homebrew/os/mac/ruby_mach.rb
index 07761e7fc..287ce481e 100644
--- a/Library/Homebrew/os/mac/ruby_mach.rb
+++ b/Library/Homebrew/os/mac/ruby_mach.rb
@@ -22,10 +22,8 @@ module RubyMachO
machos.each do |m|
arch = case m.cputype
- when "CPU_TYPE_I386" then :i386
- when "CPU_TYPE_X86_64" then :x86_64
- when "CPU_TYPE_POWERPC" then :ppc7400
- when "CPU_TYPE_POWERPC64" then :ppc64
+ when :x86_64, :i386, :ppc64 then m.cputype
+ when :ppc then :ppc7400
else :dunno
end