Pass optimization and arch flags during configure

Closes Homebrew/homebrew#24106.
This commit is contained in:
Jack Nagel 2013-11-10 18:24:49 -06:00
parent 43baf49ff1
commit 42b54150af

View File

@ -163,9 +163,9 @@ class Cmd
def cflags def cflags
args = [] args = []
return args unless cccfg? 'O' args << '-pipe'
args << '-w' unless configure?
args << '-pipe' << '-w' << '-Os' args << '-Os'
# When bottling use the oldest supported CPU type. # When bottling use the oldest supported CPU type.
if cccfg? 'bc' if cccfg? 'bc'