cc: filter more flags clang hates.

Should help with the Xcode 5.1 madness.

Closes Homebrew/homebrew#27549.
This commit is contained in:
Mike McQuaid 2014-03-14 16:46:56 +00:00
parent c91c2c10d8
commit d6bc5f42f0

View File

@ -119,8 +119,9 @@ class Cmd
/^-march=.+/, /^-mtune=.+/, /^-mcpu=.+/, '-m64', /^-march=.+/, /^-mtune=.+/, /^-mcpu=.+/, '-m64',
/^-O[0-9zs]?$/, '-fast', '-no-cpp-precomp', /^-O[0-9zs]?$/, '-fast', '-no-cpp-precomp',
'-pedantic', '-pedantic-errors' '-pedantic', '-pedantic-errors'
when '-fopenmp', '-lgomp' when '-fopenmp', '-lgomp', '-mno-fused-madd', '-fforce-addr',
# clang doesn't support OpenMP '-fno-defer-pop'
# clang doesn't support these flags
args << arg if not tool =~ /^clang/ args << arg if not tool =~ /^clang/
when /^-W.*/ when /^-W.*/
args << arg if arg =~ /^-W[alp],/ or arg =~ /^-Wno-/ args << arg if arg =~ /^-W[alp],/ or arg =~ /^-Wno-/