Remove nested conditional
This commit is contained in:
parent
0418865d56
commit
5c37baa5e7
@ -160,8 +160,10 @@ class Cmd
|
|||||||
'-frerun-cse-after-loop', '-frerun-loop-opt', '-fcse-follow-jumps'
|
'-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[alp],/, /^-Wno-/
|
||||||
|
args << arg
|
||||||
when /^-W.*/
|
when /^-W.*/
|
||||||
args << arg if arg =~ /^-W[alp],/ or arg =~ /^-Wno-/
|
# prune warnings
|
||||||
when '-macosx_version_min', '-dylib_install_name'
|
when '-macosx_version_min', '-dylib_install_name'
|
||||||
args << "-Wl,#{arg},#{enum.next}"
|
args << "-Wl,#{arg},#{enum.next}"
|
||||||
when '-multiply_definedsuppress'
|
when '-multiply_definedsuppress'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user