From be953bbb85c457abb3928c1ac05f939e78ac3bb6 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 16 Feb 2012 17:23:11 +0000 Subject: Use -Os rather than -O3 This was probably a stupid decision in the first place. Who wants lengthy compile times for debatable gain? Apple use Os in all Xcode projects, so I'm guessing its the best choice. Also I have long suspected the Image Magick performance issues Homebrew is supposedly susceptible to were because of O3. --- Library/Homebrew/extend/ENV.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index 609264cd1..0820c55e4 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -19,8 +19,8 @@ module HomebrewEnvExtension self['CMAKE_PREFIX_PATH'] = "#{HOMEBREW_PREFIX}" end - # llvm allows -O4 however it often fails to link and is very slow - self['CFLAGS'] = self['CXXFLAGS'] = "-O3 #{SAFE_CFLAGS_FLAGS}" + # Os is the default Apple uses for all its stuff so let's trust them + self['CFLAGS'] = self['CXXFLAGS'] = "-Os #{SAFE_CFLAGS_FLAGS}" self.send self.compiler # we must have a working compiler! -- cgit v1.2.3