]> granicus.if.org Git - clang/commitdiff
Don't try to compile .a files.
authorAnders Carlsson <andersca@mac.com>
Thu, 31 Jan 2008 23:48:19 +0000 (23:48 +0000)
committerAnders Carlsson <andersca@mac.com>
Thu, 31 Jan 2008 23:48:19 +0000 (23:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46626 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc

index d4a3ee7e7b89985cd722e9ff90199d951ac6762f..015c0318d40c733f905268b758c9e1a11246b54c 100755 (executable)
--- a/utils/ccc
+++ b/utils/ccc
@@ -84,7 +84,7 @@ def main(args):
             link_opts.append(arg)
         
         # Options with one argument that should be ignored
-        if arg in ['--param', '-arch']:
+        if arg in ['--param', '-arch', '-u']:
             i += 1
 
         # Prefix matches for the compile mode
@@ -183,7 +183,8 @@ def main(args):
 
     if action == 'link':
         for i, file in enumerate(files):
-            if extension(file) != "o":
+            ext = extension(file)
+            if ext != "o" and ext != "a":
                 out = changeextension(file, "o")
                 args = ['-o', out, file] + compile_opts
                 compile(args)