aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutils/ccc5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/ccc b/utils/ccc
index d4a3ee7e7b..015c0318d4 100755
--- 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)