aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-03-19 09:49:17 -0700
committerAdam Vandenberg2011-03-19 09:49:17 -0700
commit43f77f6ad085b8dbe0a64da1914326b98d33aed1 (patch)
tree0a8b8fc6c3f5dc2c9ada80de9ac830f94e3d54ed /Library
parent8b4645d895e6d998e56603dcd05362e20df0ac71 (diff)
downloadbrew-43f77f6ad085b8dbe0a64da1914326b98d33aed1.tar.bz2
Add methods to ArchitectureListExtension
Diffstat (limited to 'Library')
-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.