Tune optimisations for sandybridge

This commit is contained in:
Max Howell 2011-09-09 09:26:59 +01:00
parent c959b37227
commit 0a0187feed

View File

@ -48,7 +48,7 @@ module HomebrewEnvExtension
# http://gcc.gnu.org/onlinedocs/gcc-4.3.3/gcc/i386-and-x86_002d64-Options.html # http://gcc.gnu.org/onlinedocs/gcc-4.3.3/gcc/i386-and-x86_002d64-Options.html
if MACOS_VERSION >= 10.6 if MACOS_VERSION >= 10.6
case Hardware.intel_family case Hardware.intel_family
when :nehalem, :penryn, :core2, :arrandale when :nehalem, :penryn, :core2, :arrandale, :sandybridge
# the 64 bit compiler adds -mfpmath=sse for us # the 64 bit compiler adds -mfpmath=sse for us
cflags << "-march=core2" cflags << "-march=core2"
when :core when :core