aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2011-03-19 09:49:17 -0700
committerAdam Vandenberg2011-03-19 09:49:17 -0700
commit4f63836bb76be0feaafc13e1f64ab4499c40468c (patch)
tree6b5bb6cdb612b492afec12454638f1e456ba2019 /Library/Homebrew/utils.rb
parent3197e8ff49b9189bf6bc2c8b1dd859241b14bc3e (diff)
downloadhomebrew-4f63836bb76be0feaafc13e1f64ab4499c40468c.tar.bz2
Add methods to ArchitectureListExtension
Diffstat (limited to 'Library/Homebrew/utils.rb')
-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.