]> granicus.if.org Git - clang/commitdiff
Input files should be before link options.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 18 Nov 2008 17:38:30 +0000 (17:38 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 18 Nov 2008 17:38:30 +0000 (17:38 +0000)
 - 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

utils/ccc

index 96548553eab7902ae983b31bf5521d4cfd14ee5d..1a7fea415a4a73dca1e525d8aef78a37aa2eb132 100755 (executable)
--- a/utils/ccc
+++ b/utils/ccc
@@ -407,7 +407,7 @@ def main(args):
                 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__':