aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/hardware.rb
AgeCommit message (Collapse)Author
2015-02-27Remove ivars from default Hardware::CPU methodsJack Nagel
These methods are always overridden in the per-OS modules, so let's just provide sensible defaults for documentation purposes.
2015-02-23Provide Hardware::CPU.feature?Jack Nagel
2015-02-23Define Hardware::CPU.features on the base moduleJack Nagel
2013-11-26Add Hardware::CPU.intel? and Hardware::CPU.ppc?Jack Nagel
2013-10-18Add OS.mac? and OS.linux?Jack Nagel
2013-08-15Mach: improve PPC arch detectionMisty De Meo
Also adds some reusable constants into the global Hardware::CPU namespace, available on both OS X and Linux.
2013-06-14Use Hardware::CPU moduleJack Nagel
2013-06-06Move oldest_cpu to HardwareJack Nagel
2013-05-10Reorganize compatJack Nagel
2013-03-23Hardware: separate out CPU values into CPU moduleMisty De Meo
* 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 <mistydemeo@gmail.com>
2013-03-11Portability fixes to run Homebrew on Linux systemsShaun Jackman
Closes #16344. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-07-16Add Ivy Bridge CPU familyMisty De Meo
Fixes #13434.
2012-07-02Cache Hardware.is_64_bit?Jack Nagel
IO#popen is called for each call to Hardware.is_64_bit?; this becomes costly when it is repeatedly invoked. Luckily it is an invariant, so we can store it in a class variable. False is a valid value for this method, so the usual ||= idiom is not applicable. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-07-05sandybridge hardware identifier for brew --configAustin Seipp
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-18Add MacOS.prefer_64_bit?Adam Vandenberg
Moved snow_leopard_64? to compatibility and replaced it with a function MacOS.prefer_64_bit?. This method is in a better place and has a better name once Lion comes out. Fixes #4710
2010-08-22Define "snow_leopard_64?"Adam Vandenberg
snow_leopard_64? (defined in Hardware) is a short-cut for: MACOS_VERSION >= 10.6 and Hardware.is_64_bit? Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-04-29Add 'Arrandale' for core i7 MBPlistrophy
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-04-22Fix universal builds on 32-bit CPUs.Adam Vandenberg
2010-03-01Move license block to separate LICENSE file.Adam Vandenberg
2009-11-19Move some helper functions into HardwareAdam Vandenberg
2009-09-24Add Hardware.is_64_bit? methodBen Alpert
Closes #53
2009-09-03Fix some "GCC cannot create executables"Max Howell
This regards Issue #30. Turns out -march=native isn't supported by Apple's GCC, but while investigating it I found they'd back ported the -march=core2 option, so we win anyway. Logic reverted to how it was yesterday. I moved the gcc options stuff back to brewkit.rb as we manipulate the cflags more later and it seemed bad form to split the logic for this area over two files. Additionally the brew command exits immediately on powerpc now. Brewkit doesn't throw as theoretically it is a useful library file for other projects.
2009-09-03Improvements to build environment determinationspicyj
Simplified hardware model testing. Even smarter compiler option generation using sysctl and new GCC 4.2 features. Get processor count from sysctl and thus remove our dependency on RubyCocoa.