Pass optimization and arch flags during configure
Closes Homebrew/homebrew#24106.
This commit is contained in:
parent
43baf49ff1
commit
42b54150af
@ -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'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user