From b549b88bdab61c54625a1a0f1c576486316cf303 Mon Sep 17 00:00:00 2001 From: "Ian A. Mason" Date: Fri, 8 Apr 2016 14:37:37 -0700 Subject: [PATCH] need to recognize .dylib args. Amazing that it took so long to tweak this bug (clang -dynamiclib foo.c -o foo.dylib) --- driver/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver/utils.py b/driver/utils.py index 5ba5793..be4ec66 100644 --- a/driver/utils.py +++ b/driver/utils.py @@ -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.... @@ -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),