aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/hardware.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/hardware.rb')
-rw-r--r--Library/Homebrew/hardware.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Homebrew/hardware.rb b/Library/Homebrew/hardware.rb
index 0a52d10db..a47de5247 100644
--- a/Library/Homebrew/hardware.rb
+++ b/Library/Homebrew/hardware.rb
@@ -30,6 +30,14 @@ class Hardware
def is_64_bit?
bits == 64
end
+
+ def intel?
+ type == :intel
+ end
+
+ def ppc?
+ type == :ppc
+ end
end
if OS.mac?
@@ -53,7 +61,7 @@ class Hardware
end
def self.oldest_cpu
- if Hardware::CPU.type == :intel
+ if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
:core2
else