Skip to content
Snippets Groups Projects
Commit e339a2a7 authored by Ben Alpert's avatar Ben Alpert
Browse files

Add Hardware.is_64_bit? method

Closes Homebrew/homebrew#53
parent bab65156
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment