aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/hardware.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/hardware.rb b/Library/Homebrew/hardware.rb
index 8716cd270..426ab4c49 100644
--- a/Library/Homebrew/hardware.rb
+++ b/Library/Homebrew/hardware.rb
@@ -55,7 +55,8 @@ class Hardware
end
def self.is_64_bit?
- self.sysctl_bool("hw.cpu64bit_capable")
+ return @@is_64_bit if defined? @@is_64_bit
+ @@is_64_bit = self.sysctl_bool("hw.cpu64bit_capable")
end
def self.bits