Skip to content

Commit

Permalink
need to recognize .dylib args. Amazing that it took so long to tweak …
Browse files Browse the repository at this point in the history
…this bug (clang -dynamiclib foo.c -o foo.dylib)
  • Loading branch information
ianamason committed Apr 8, 2016
1 parent 0c164f0 commit b549b88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver/utils.py
Expand Up @@ -223,7 +223,7 @@ def __init__(self, inputList, exactMatches={}, patternMatches={}):
#
# Patterns for other command-line arguments:
# - inputFiles
# - objecFiles (suffix .o)
# - objectFiles (suffix .o)
# - libraries + linker options as in -lxxx -Lpath or -Wl,xxxx
# - preprocessor options as in -DXXX -Ipath
# - compiler warning options: -W....
Expand All @@ -233,7 +233,7 @@ def __init__(self, inputList, exactMatches={}, patternMatches={}):
r'^.+\.(c|cc|cpp|C|cxx|i|s|S)$' : (0, ArgumentListFilter.inputFileCallback),
#iam: the object file recogition is not really very robust, object files
# should be determined by their existance and contents...
r'^.+\.(o|lo|So|so|po|a)$' : (0, ArgumentListFilter.objectFileCallback),
r'^.+\.(o|lo|So|so|po|a|dylib)$' : (0, ArgumentListFilter.objectFileCallback),
r'^-(l|L).+$' : (0, ArgumentListFilter.linkUnaryCallback),
r'^-I.+$' : (0, ArgumentListFilter.compileUnaryCallback),
r'^-D.+$' : (0, ArgumentListFilter.compileUnaryCallback),
Expand Down

0 comments on commit b549b88

Please sign in to comment.