@@ -214,13 +214,12 @@ def __init__(self, inputList, exactMatches={}, patternMatches={}):
214
214
r'^.+\.(c|cc|cpp|C|cxx|i|s|S)$' : (0 , ArgumentListFilter .inputFileCallback ),
215
215
#iam: the object file recogition is not really very robust, object files
216
216
# should be determined by their existance and contents...
217
- r'^.+\.(o|So|po|a)$' : (0 , ArgumentListFilter .objectFileCallback ),
217
+ r'^.+\.(o|So|so| po|a)$' : (0 , ArgumentListFilter .objectFileCallback ),
218
218
r'^-(l|L).+$' : (0 , ArgumentListFilter .linkUnaryCallback ),
219
219
r'^-I.+$' : (0 , ArgumentListFilter .compileUnaryCallback ),
220
220
r'^-D.+$' : (0 , ArgumentListFilter .compileUnaryCallback ),
221
- #iam: hopefully the order of these is preserved, time will tell
222
221
r'^-Wl,.+$' : (0 , ArgumentListFilter .linkUnaryCallback ),
223
- r'^-W.+ $' : (0 , ArgumentListFilter .compileUnaryCallback ),
222
+ r'^-W(?!l,).* $' : (0 , ArgumentListFilter .compileUnaryCallback ),
224
223
r'^-f.+$' : (0 , ArgumentListFilter .compileUnaryCallback ),
225
224
r'^-std=.+$' : (0 , ArgumentListFilter .compileUnaryCallback ),
226
225
}
0 commit comments