Add missing "-" that prefix arguments to forward to clang.

llvm-svn: 50540
This commit is contained in:
Ted Kremenek 2008-05-01 21:26:22 +00:00
parent 694dda1e4e
commit 4f3d7cd12e
1 changed files with 2 additions and 2 deletions

View File

@ -184,11 +184,11 @@ def main(args):
i += 1
# Options with no argument that should pass through to compiler
if arg in [ '-nostdinc', 'fobjc-gc-only', 'fobjc-gc' ]:
if arg in [ '-nostdinc', '-fobjc-gc-only', '-fobjc-gc' ]:
compile_opts.append(arg)
# Options with one argument that should pass through to linker
if arg == 'framework':
if arg == '-framework':
link_opts.append(arg)
link_opts.append(args[i+1])
i += 1