diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 072e8fd116..c5d9168d91 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -145,6 +145,15 @@ module ArchitectureListExtension def universal? self.include? :i386 and self.include? :x86_64 end + + def remove_ppc! + self.delete :ppc7400 + self.delete :ppc64 + end + + def as_arch_flags + self.collect{ |a| "-arch #{a}" }.join(' ') + end end # Returns array of architectures that the given command or library is built for.