summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2008-01-31 23:48:19 +0000
committerAnders Carlsson <andersca@mac.com>2008-01-31 23:48:19 +0000
commit3d149daf50aef890e4057eeb964cc48a38ddbf7d (patch)
tree48bbf869704678d9722e51c0e0a0ed6e9699a9e5
parentd47eedb7e90f8514b74be561cda7b9a97d18926d (diff)
downloadbcm5719-llvm-3d149daf50aef890e4057eeb964cc48a38ddbf7d.tar.gz
bcm5719-llvm-3d149daf50aef890e4057eeb964cc48a38ddbf7d.zip
Don't try to compile .a files.
llvm-svn: 46626
-rwxr-xr-xclang/utils/ccc5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/utils/ccc b/clang/utils/ccc
index d4a3ee7e7b8..015c0318d40 100755
--- a/clang/utils/ccc
+++ b/clang/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)
OpenPOWER on IntegriCloud