[cfe-commits] r46626 - /cfe/trunk/utils/ccc

Anders Carlsson andersca at mac.com
Thu Jan 31 15:48:20 PST 2008


Author: andersca
Date: Thu Jan 31 17:48:19 2008
New Revision: 46626

URL: http://llvm.org/viewvc/llvm-project?rev=46626&view=rev
Log:
Don't try to compile .a files.

Modified:
    cfe/trunk/utils/ccc

Modified: cfe/trunk/utils/ccc
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc?rev=46626&r1=46625&r2=46626&view=diff

==============================================================================
--- cfe/trunk/utils/ccc (original)
+++ cfe/trunk/utils/ccc Thu Jan 31 17:48:19 2008
@@ -84,7 +84,7 @@
             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 @@
 
     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)





More information about the cfe-commits mailing list