cc: filter more flags clang hates.
Should help with the Xcode 5.1 madness. Closes Homebrew/homebrew#27549.
This commit is contained in:
parent
c91c2c10d8
commit
d6bc5f42f0
@ -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-/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user