superenv: properly filter gcc-4.2 flags

These weren't being filtered correctly if the compiler was being called
as g++ instead of gcc.

Fixes mistydemeo/tigerbrew#371.
This commit is contained in:
Misty De Meo 2016-01-15 22:58:50 -04:00
parent 4a8632e54d
commit 0fa731b020

View File

@ -151,7 +151,7 @@ class Cmd
args << arg unless tool =~ /^clang/
when "-Wno-deprecated-register"
# older gccs don't support these flags
args << arg unless tool =~ /^gcc-4.[02]/
args << arg unless tool =~ /^g..-4.[02]/
when /^-W[alp],/, /^-Wno-/
args << arg
when /^-W.*/