commit | 2b0aaee3965e2bd8495e004a7b5934d6d80a4a18 | [log] [tgz] |
---|---|---|
author | Nuno Lopes <nunoplopes@sapo.pt> | Sat Jul 05 17:31:10 2008 +0000 |
committer | Nuno Lopes <nunoplopes@sapo.pt> | Sat Jul 05 17:31:10 2008 +0000 |
tree | a33b728b40bbbb6de7288b57105e3b285f20d40b | |
parent | baf6672b9aec48b93f2b7ff83ac95ac24de4e05d [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
diff --git a/utils/ccc b/utils/ccc index 794c166..d29443c 100755 --- a/utils/ccc +++ b/utils/ccc
@@ -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