Add methods to ArchitectureListExtension

This commit is contained in:
Adam Vandenberg committed 2011-03-19 09:49:17 -07:00
1 parent 3197e8ff49
commit 4f63836bb7
1 file changed
+9
+9
View File
@@ -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.