Allow -Wno- flags to pass through

These inhibit warnings-as-errors, so allow them to pass through.
This commit is contained in:
Jack Nagel 2013-11-21 16:44:10 -06:00
parent de9b1845e0
commit 9584320668

View File

@ -132,7 +132,7 @@ class Cmd
# clang doesn't support OpenMP
args << arg if not tool =~ /^clang/
when /^-W.*/
args << arg if arg =~ /^-W[alp],/
args << arg if arg =~ /^-W[alp],/ or arg =~ /^-Wno-/
when '-macosx_version_min', '-dylib_install_name'
args << "-Wl,#{arg},#{whittler.next}"
when /^-isysroot/