зеркало из https://github.com/microsoft/clang-1.git
Add missing "-" that prefix arguments to forward to clang.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50540 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
93213bb42c
Коммит
73c083c27c
|
@ -184,11 +184,11 @@ def main(args):
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
# Options with no argument that should pass through to compiler
|
# 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)
|
compile_opts.append(arg)
|
||||||
|
|
||||||
# Options with one argument that should pass through to linker
|
# Options with one argument that should pass through to linker
|
||||||
if arg == 'framework':
|
if arg == '-framework':
|
||||||
link_opts.append(arg)
|
link_opts.append(arg)
|
||||||
link_opts.append(args[i+1])
|
link_opts.append(args[i+1])
|
||||||
i += 1
|
i += 1
|
||||||
|
|
Загрузка…
Ссылка в новой задаче