diff options
Diffstat (limited to 'Library/Homebrew/extend')
| -rw-r--r-- | Library/Homebrew/extend/os/linux/hardware/cpu.rb | 19 | ||||
| -rw-r--r-- | Library/Homebrew/extend/os/mac/hardware/cpu.rb | 10 |
2 files changed, 3 insertions, 26 deletions
diff --git a/Library/Homebrew/extend/os/linux/hardware/cpu.rb b/Library/Homebrew/extend/os/linux/hardware/cpu.rb index 48028da87..d8c281bfc 100644 --- a/Library/Homebrew/extend/os/linux/hardware/cpu.rb +++ b/Library/Homebrew/extend/os/linux/hardware/cpu.rb @@ -1,25 +1,6 @@ module Hardware class CPU class << self - - OPTIMIZATION_FLAGS = { - :penryn => "-march=core2 -msse4.1", - :core2 => "-march=core2", - :core => "-march=prescott" - }.freeze - def optimization_flags - OPTIMIZATION_FLAGS - end - - # Linux supports x86 only, and universal archs do not apply - def arch_32_bit - :i386 - end - - def arch_64_bit - :x86_64 - end - def universal_archs [].extend ArchitectureListExtension end diff --git a/Library/Homebrew/extend/os/mac/hardware/cpu.rb b/Library/Homebrew/extend/os/mac/hardware/cpu.rb index 5f6b4c3a6..8733c4933 100644 --- a/Library/Homebrew/extend/os/mac/hardware/cpu.rb +++ b/Library/Homebrew/extend/os/mac/hardware/cpu.rb @@ -3,19 +3,15 @@ require "os/mac/pathname" module Hardware class CPU class << self - - OPTIMIZATION_FLAGS = { - :penryn => "-march=core2 -msse4.1", - :core2 => "-march=core2", - :core => "-march=prescott", + PPC_OPTIMIZATION_FLAGS = { :g3 => "-mcpu=750", :g4 => "-mcpu=7400", :g4e => "-mcpu=7450", :g5 => "-mcpu=970", - :g5_64 => "-mcpu=970 -arch ppc64" + :g5_64 => "-mcpu=970 -arch ppc64", }.freeze def optimization_flags - OPTIMIZATION_FLAGS + OPTIMIZATION_FLAGS.merge(PPC_OPTIMIZATION_FLAGS) end # These methods use info spewed out by sysctl. |
