diff options
author | Anders Carlsson <andersca@mac.com> | 2008-01-31 23:48:19 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-01-31 23:48:19 +0000 |
commit | c720d9b22ea31c4e8ffc800987fbdc293cf95aba (patch) | |
tree | fe18df884a131fe6f126cd3b2f7c2c41b6b8d533 | |
parent | 516f91b0917f2aafdce1a989482d21a7224b40ec (diff) |
Don't try to compile .a files.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46626 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | utils/ccc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |