From f3a6385c8cfe867811d539ab1506198f3f6048dd Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Fri, 17 Jun 2016 20:41:08 -0400 Subject: [PATCH] ruby_mach: Update cputype case block. MachOFile#cputype now returns a Symbol. --- Library/Homebrew/os/mac/ruby_mach.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/os/mac/ruby_mach.rb b/Library/Homebrew/os/mac/ruby_mach.rb index 07761e7fc1..287ce481e8 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