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:
parent
4a8632e54d
commit
0fa731b020
@ -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.*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user