Skip to content

Commit b549b88

Browse files
committed
need to recognize .dylib args. Amazing that it took so long to tweak this bug (clang -dynamiclib foo.c -o foo.dylib)
1 parent 0c164f0 commit b549b88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def __init__(self, inputList, exactMatches={}, patternMatches={}):
223223
#
224224
# Patterns for other command-line arguments:
225225
# - inputFiles
226-
# - objecFiles (suffix .o)
226+
# - objectFiles (suffix .o)
227227
# - libraries + linker options as in -lxxx -Lpath or -Wl,xxxx
228228
# - preprocessor options as in -DXXX -Ipath
229229
# - compiler warning options: -W....
@@ -233,7 +233,7 @@ def __init__(self, inputList, exactMatches={}, patternMatches={}):
233233
r'^.+\.(c|cc|cpp|C|cxx|i|s|S)$' : (0, ArgumentListFilter.inputFileCallback),
234234
#iam: the object file recogition is not really very robust, object files
235235
# should be determined by their existance and contents...
236-
r'^.+\.(o|lo|So|so|po|a)$' : (0, ArgumentListFilter.objectFileCallback),
236+
r'^.+\.(o|lo|So|so|po|a|dylib)$' : (0, ArgumentListFilter.objectFileCallback),
237237
r'^-(l|L).+$' : (0, ArgumentListFilter.linkUnaryCallback),
238238
r'^-I.+$' : (0, ArgumentListFilter.compileUnaryCallback),
239239
r'^-D.+$' : (0, ArgumentListFilter.compileUnaryCallback),

0 commit comments

Comments
 (0)