aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2008-07-05 17:31:10 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2008-07-05 17:31:10 +0000
commit05f971a432fc4b1ce5b67e2ae375382acf7a728f (patch)
treea33b728b40bbbb6de7288b57105e3b285f20d40b
parent68bf38729671679f215e02237847e59716fa25a6 (diff)
llvm-ld doesnt support -O1, -O2, etc options, so dont pass them
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53144 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xutils/ccc4
1 files changed, 1 insertions, 3 deletions
diff --git a/utils/ccc b/utils/ccc
index 794c166b87..d29443c832 100755
--- 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