]> granicus.if.org Git - clang/commitdiff
Add ccc support for -e and -sectorder.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 12 Sep 2008 19:42:28 +0000 (19:42 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 12 Sep 2008 19:42:28 +0000 (19:42 +0000)
    - llvmc2, save me!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56169 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc

index 9a858291d5e6f875394fa907ae01ba9d241fa007..4a4b53df927be281f6d4f5ce87b477749f7037be 100755 (executable)
--- a/utils/ccc
+++ b/utils/ccc
@@ -229,7 +229,8 @@ def main(args):
             i += 1
 
         # Options with one argument that should pass through
-        if arg in ['-framework', '-multiply_defined', '-bundle_loader']:
+        if arg in ('-framework', '-multiply_defined', '-bundle_loader',
+                   '-e'):
             link_opts.append(arg)
             link_opts.append(args[i+1])
             i += 1
@@ -241,6 +242,11 @@ def main(args):
             link_opts.append(arg)
             link_opts.append(args[i+1])
             i += 1
+        
+        # Options with three arguments that should pass through
+        if arg in ('-sectorder',):
+            link_opts.extend(args[i:i+4])
+            i += 3
 
         # Prefix matches for the link mode
         if arg[:2] in ['-l', '-L', '-F', '-R']: