Input files should be before link options.
- PR3094.
- No test case, ccc is not really a supported product (llvmc2 already
got this right).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59535 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/ccc b/utils/ccc
index 9654855..1a7fea4 100755
--- a/utils/ccc
+++ b/utils/ccc
@@ -407,7 +407,7 @@
files[i] = out
if not output:
output = 'a.out'
- args = ['-o', output] + link_opts + files
+ args = ['-o', output] + files + link_opts
link(args, native)
if __name__ == '__main__':