Skip to content

Commit e1df3e3

Browse files
updated regexps for arguments
Removed typo to find .so files Order is not kept in dict, fixing the regexp
1 parent c0cf4c2 commit e1df3e3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

driver/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,12 @@ def __init__(self, inputList, exactMatches={}, patternMatches={}):
214214
r'^.+\.(c|cc|cpp|C|cxx|i|s|S)$' : (0, ArgumentListFilter.inputFileCallback),
215215
#iam: the object file recogition is not really very robust, object files
216216
# should be determined by their existance and contents...
217-
r'^.+\.(o|So|po|a)$' : (0, ArgumentListFilter.objectFileCallback),
217+
r'^.+\.(o|so|po|a)$' : (0, ArgumentListFilter.objectFileCallback),
218218
r'^-(l|L).+$' : (0, ArgumentListFilter.linkUnaryCallback),
219219
r'^-I.+$' : (0, ArgumentListFilter.compileUnaryCallback),
220220
r'^-D.+$' : (0, ArgumentListFilter.compileUnaryCallback),
221-
#iam: hopefully the order of these is preserved, time will tell
222221
r'^-Wl,.+$' : (0, ArgumentListFilter.linkUnaryCallback),
223-
r'^-W.+$' : (0, ArgumentListFilter.compileUnaryCallback),
222+
r'^-W(?!l,).*$' : (0, ArgumentListFilter.compileUnaryCallback),
224223
r'^-f.+$' : (0, ArgumentListFilter.compileUnaryCallback),
225224
r'^-std=.+$' : (0, ArgumentListFilter.compileUnaryCallback),
226225
}

0 commit comments

Comments
 (0)