aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os/mac
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/os/mac')
-rw-r--r--Library/Homebrew/os/mac/hardware.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/os/mac/hardware.rb b/Library/Homebrew/os/mac/hardware.rb
index 5487a8d4d..05cd3da5e 100644
--- a/Library/Homebrew/os/mac/hardware.rb
+++ b/Library/Homebrew/os/mac/hardware.rb
@@ -75,6 +75,14 @@ module MacCPUs
@bits ||= is_64_bit ? 64 : 32
end
+ def arch_32_bit
+ type == :intel ? :i386 : :ppc
+ end
+
+ def arch_64_bit
+ type == :intel ? :x86_64 : :ppc64
+ end
+
def altivec?
@altivec ||= sysctl_bool('hw.optional.altivec')
end