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

Nuno Lopes nunoplopes at sapo.pt
Sat Jul 5 10:31:10 PDT 2008


Author: nlopes
Date: Sat Jul  5 12:31:10 2008
New Revision: 53144

URL: http://llvm.org/viewvc/llvm-project?rev=53144&view=rev
Log:
llvm-ld doesnt support -O1, -O2, etc  options, so dont pass them

Modified:
    cfe/trunk/utils/ccc

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

==============================================================================
--- cfe/trunk/utils/ccc (original)
+++ cfe/trunk/utils/ccc Sat Jul  5 12:31:10 2008
@@ -134,9 +134,7 @@
             i += 1
 
         # Prefix matches for the link mode
-        if arg[:2] in ['-l', '-L', '-O', '-F']:
-            if arg == '-O': arg = '-O1'
-            if arg == '-Os': arg = '-O2'
+        if arg[:2] in ['-l', '-L', '-F']:
             link_opts.append(arg)
 
         # Enable threads





More information about the cfe-commits mailing list