From 2476801613a293d7810c5faf2e3383a653b1389c Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Sun, 17 Mar 2013 13:30:12 -0500 Subject: Hardware: separate out CPU values into CPU module * CPU functions now exist in Hardware::CPU * Added compatibility functions in compat/hardware_compat.rb * Names are less specific to Mac hardware, e.g. CPU.family instead of Hardware.intel_family * Hardware::CPU.family works for both Intel and PowerPC * New helper methods on CPU, like .sse4? and .altivec? Signed-off-by: Misty De Meo --- Library/Homebrew/cmd/--config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/--config.rb b/Library/Homebrew/cmd/--config.rb index 6f6368291..1143d5d00 100644 --- a/Library/Homebrew/cmd/--config.rb +++ b/Library/Homebrew/cmd/--config.rb @@ -85,7 +85,7 @@ module Homebrew extend self end def hardware - "CPU: #{Hardware.cores_as_words}-core #{Hardware.bits}-bit #{Hardware.intel_family}" + "CPU: #{Hardware.cores_as_words}-core #{Hardware::CPU.bits}-bit #{Hardware::CPU.family}" end def kernel -- cgit v1.2.3