diff options
Diffstat (limited to 'Library/Homebrew/hardware.rb')
| -rw-r--r-- | Library/Homebrew/hardware.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/hardware.rb b/Library/Homebrew/hardware.rb index 3059f0875..18d4e6665 100644 --- a/Library/Homebrew/hardware.rb +++ b/Library/Homebrew/hardware.rb @@ -60,6 +60,10 @@ class Hardware @@processor_count ||= `/usr/sbin/sysctl -n hw.ncpu`.to_i end + def self.is_64_bit? + self.sysctl_bool("hw.cpu64bit_capable") + end + protected def self.sysctl_bool(property) result = nil |
