From 43f77f6ad085b8dbe0a64da1914326b98d33aed1 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 19 Mar 2011 09:49:17 -0700 Subject: [PATCH] Add methods to ArchitectureListExtension --- Library/Homebrew/utils.rb | 9 +++++++++ 1 file changed, 9 insertions(+) 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.