Allow -Wno- flags to pass through
These inhibit warnings-as-errors, so allow them to pass through.
This commit is contained in:
parent
de9b1845e0
commit
9584320668
@ -132,7 +132,7 @@ class Cmd
|
|||||||
# clang doesn't support OpenMP
|
# clang doesn't support OpenMP
|
||||||
args << arg if not tool =~ /^clang/
|
args << arg if not tool =~ /^clang/
|
||||||
when /^-W.*/
|
when /^-W.*/
|
||||||
args << arg if arg =~ /^-W[alp],/
|
args << arg if arg =~ /^-W[alp],/ or arg =~ /^-Wno-/
|
||||||
when '-macosx_version_min', '-dylib_install_name'
|
when '-macosx_version_min', '-dylib_install_name'
|
||||||
args << "-Wl,#{arg},#{whittler.next}"
|
args << "-Wl,#{arg},#{whittler.next}"
|
||||||
when /^-isysroot/
|
when /^-isysroot/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user