Blacklist more flags that clang does not support

Fixes Homebrew/homebrew#28680.
This commit is contained in:
Jack Nagel 2014-04-24 13:20:24 -05:00
parent 4303817ec7
commit fb27cbe6a7

View File

@ -137,7 +137,8 @@ class Cmd
when '-fopenmp', '-lgomp', '-mno-fused-madd', '-fforce-addr', '-fno-defer-pop', when '-fopenmp', '-lgomp', '-mno-fused-madd', '-fforce-addr', '-fno-defer-pop',
'-mno-dynamic-no-pic', '-fearly-inlining', '-finline-functions-called-once', '-mno-dynamic-no-pic', '-fearly-inlining', '-finline-functions-called-once',
/^-finline-limit/, /^-f(?:no-)?check-new/, '-fno-delete-null-pointer-checks', /^-finline-limit/, /^-f(?:no-)?check-new/, '-fno-delete-null-pointer-checks',
'-fcaller-saves', '-fthread-jumps', '-fno-reorder-blocks' '-fcaller-saves', '-fthread-jumps', '-fno-reorder-blocks', '-fcse-skip-blocks',
'-frerun-cse-after-loop', '-frerun-loop-opt', '-fcse-follow-jumps'
# 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.*/