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.
This commit is contained in:
parent
ec66d1f956
commit
be953bbb85
@ -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!
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user