Superenv: be more specific about -O flags

Closes Homebrew/homebrew#15775.
This commit is contained in:
Adam Vandenberg 2012-10-31 06:50:50 -07:00
parent 32b1d46c96
commit e502728641

View File

@ -103,7 +103,7 @@ class Cmd
whittler.next
when /^-g\d?/, /^-gstabs\d+/, '-gstabs+', /^-ggdb\d?/, '-gdwarf-2',
/^-march=.+/, /^-mtune=.+/, '-m64', '-m32',
/^-O[0-9zs]?/, '-fast',
/^-O[0-9zs]?$/, '-fast',
'-pedantic', '-pedantic-errors'
when '-fopenmp', '-lgomp'
# clang doesn't support OpenMP