62 Commits

Author SHA1 Message Date
Misty De Meo
cf9e25cfa5 Add Ivy Bridge CPU family
Fixes Homebrew/homebrew#13434.
2012-07-16 16:26:47 -05:00
Jack Nagel
ca71c038a1 Cache Hardware.is_64_bit?
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>
2012-07-02 01:10:21 -05:00
Austin Seipp
567711ed74 sandybridge hardware identifier for brew --config
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-05 09:38:41 -07:00
Adam Vandenberg
d8c2642b6d Add MacOS.prefer_64_bit?
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 Homebrew/homebrew#4710
2011-03-18 10:30:26 -07:00
Adam Vandenberg
1e5b23f2db Define "snow_leopard_64?"
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-08-22 20:11:03 -07:00
listrophy
d7f19e7afb Add 'Arrandale' for core i7 MBP
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-04-29 11:51:05 -07:00
Adam Vandenberg
7c158e2350 Fix universal builds on 32-bit CPUs. 2010-04-22 17:23:59 -07:00
Adam Vandenberg
a9b19f0255 Move license block to separate LICENSE file. 2010-03-01 11:41:24 -08:00
Adam Vandenberg
4fbcf13e65 Move some helper functions into Hardware 2009-11-19 14:03:06 -08:00
Ben Alpert
e339a2a73f Add Hardware.is_64_bit? method
Closes Homebrew/homebrew#53
2009-09-24 16:30:26 -06:00
Max Howell
a12569699e Fix some "GCC cannot create executables"
This regards Issue Homebrew/homebrew#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-03 22:39:49 +01:00
spicyj
ba8ba4c451 Improvements to build environment determination
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.
2009-09-03 16:34:31 +01:00