]> granicus.if.org Git - clang/commitdiff
llvm-ld doesnt support -O1, -O2, etc options, so dont pass them
authorNuno Lopes <nunoplopes@sapo.pt>
Sat, 5 Jul 2008 17:31:10 +0000 (17:31 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Sat, 5 Jul 2008 17:31:10 +0000 (17:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53144 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc

index 794c166b87951518e04e701c005781c24f5fbc00..d29443c832f322e09d326ccc58a1ac5ce1535769 100755 (executable)
--- a/utils/ccc
+++ b/utils/ccc
@@ -134,9 +134,7 @@ def main(args):
             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