aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os/mac/hardware.rb
AgeCommit message (Collapse)Author
2016-05-08Make hardware code cross-platform.Mike McQuaid
2016-04-22Hardware: PPC970 needs -m64 to build 64-bitMisty De Meo
Fixes mistydemeo/tigerbrew#37.
2016-02-03os/mac: optionally use ruby_macho.William Woodruff
- and branch for dylib_id_and_dylibs - add branches for dylib id changing and change_install_name - rename MachO module to HomebrewMachO to prevent namespace clashes with MachO in ruby-macho. this will eventually be replaced entirely with direct calls to ruby-macho methods - break ruby-macho implementation out into separate RubyMachO module, and include either RubyMachO or CctoolsMachO (the original implementation) based on the HOMEBREW_RUBY_MACHO env var - move ArchitectureListExtension and RubyMachO into separate files - create {ruby_,cctools_,,}relocate.rb for isolation of different methods of mach-o relocation (ruby-macho vs. cctools) - fill in require_install_name_tool? for ruby_relocate.rb - rename {ruby_,cctools_,,}relocate.rb to keg, isolate requires in os/mac Closes Homebrew/homebrew#45001. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-03os/mac/hardware: add Skylake CPU.ilovezfs
Closes Homebrew/homebrew#48781. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-11-01os/mac/hardware: reverse universal_archs entries.Ryan Hendrickson
The order ought not to matter, but GCC can fail with -arch i386 -arch x86_64 (producing an error like "FATAL:Bad fx_size (0x8) in fix_to_relocation_info()") but succeed with -arch x86_64 -arch i386. Closes Homebrew/homebrew#45401. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-18move mach.rb to os/mac/mach.rbXu Cheng
2015-08-06more core file style updated by rubocopXu Cheng
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-24hardware: correctly detect early 2015 MacBook Pro.enami tsugutomo
Closes Homebrew/homebrew#38996. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-27Include more features in Hardware::CPU.featuresJack Nagel
2015-02-27Make sysctl methods private rather than protectedJack Nagel
2015-02-27Drop unnecessary $?.success? checkJack Nagel
2015-02-27Move caching from sysctl_bool to sysctl_nJack Nagel
2015-02-27Add sysctl_n and sysctl_int methods to Mac hardware moduleJack Nagel
2014-07-05Use popen wrapperJack Nagel
Closes Homebrew/homebrew#30678.
2014-06-21Hardware: add new .features methodMisty De Meo
This returns a list of symbols with the various CPU features supported by the active hardware.
2014-04-30--config -> configAdam Vandenberg
2013-11-26Add Hardware::CPU.aes? and Hardware::CPU.avx2?Jack Nagel
2013-11-26Add Hardware::CPU.intel? and Hardware::CPU.ppc?Jack Nagel
2013-11-26Simplify Hardware::CPU.is_64_bit?Jack Nagel
2013-11-26Cache calls to sysctl_bool at the sourceJack Nagel
2013-10-30Hardware::CPU: add extmodel helperMisty De Meo
2013-10-30Add Hardware::CPU.ssse3? helper method.Brian Stolz
Closes Homebrew/homebrew#23796. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-10-03MacCPUs: distinguish between G5 32-bit and 64-bitMisty De Meo
2013-08-15Add Hardware::CPU.universal_archsMisty De Meo
2013-08-15Add Hardware::CPU.arch_(32|64)_bitMisty De Meo
This replaces hardcoding of i386/x86_64 all over the code.
2013-07-02Hardware: Query sysctl for instructon setsMisty De Meo
This may be more accurate than guessing.
2013-07-01Hardware::CPU (Mac): add HaswellMisty De Meo
See Homebrew/homebrew#20935.
2013-06-14Freeze optimization flags hash rather than duping itJack Nagel
2013-04-07MacCPUs: add .avx? helperMisty De Meo
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 Homebrew/homebrew#16344. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>