aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/utils.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 072e8fd11..c5d9168d9 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.