superenv: filter -fno-check-new

Fixes Homebrew/homebrew#27415.
This commit is contained in:
Misty De Meo 2014-03-14 12:29:17 -07:00
parent afec712a86
commit 86a0373159

View File

@ -120,7 +120,7 @@ class Cmd
/^-O[0-9zs]?$/, '-fast', '-no-cpp-precomp', /^-O[0-9zs]?$/, '-fast', '-no-cpp-precomp',
'-pedantic', '-pedantic-errors' '-pedantic', '-pedantic-errors'
when '-fopenmp', '-lgomp', '-mno-fused-madd', '-fforce-addr', when '-fopenmp', '-lgomp', '-mno-fused-madd', '-fforce-addr',
'-fno-defer-pop' '-fno-defer-pop', '-fno-check-new'
# clang doesn't support these flags # clang doesn't support these flags
args << arg if not tool =~ /^clang/ args << arg if not tool =~ /^clang/
when /^-W.*/ when /^-W.*/