[cfe-commits] r56169 - /cfe/trunk/utils/ccc

Daniel Dunbar daniel at zuster.org
Fri Sep 12 12:42:29 PDT 2008


Author: ddunbar
Date: Fri Sep 12 14:42:28 2008
New Revision: 56169

URL: http://llvm.org/viewvc/llvm-project?rev=56169&view=rev
Log:
Add ccc support for -e and -sectorder.
    - llvmc2, save me!

Modified:
    cfe/trunk/utils/ccc

Modified: cfe/trunk/utils/ccc
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc?rev=56169&r1=56168&r2=56169&view=diff

==============================================================================
--- cfe/trunk/utils/ccc (original)
+++ cfe/trunk/utils/ccc Fri Sep 12 14:42:28 2008
@@ -229,7 +229,8 @@
             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 @@
             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']:





More information about the cfe-commits mailing list