Pass down more -iXXX options that clang supports
llvm-svn: 50304
This commit is contained in:
parent
f10b493fc0
commit
e5aa10cec4
|
@ -166,19 +166,26 @@ def main(args):
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
# Prefix matches for the compile mode
|
# Prefix matches for the compile mode
|
||||||
if arg[:2] in ['-D', '-I', '-U', '-F']:
|
if arg[:2] in ['-D', '-I', '-U', '-F' ]:
|
||||||
if not arg[2:]:
|
if not arg[2:]:
|
||||||
arg += args[i+1]
|
arg += args[i+1]
|
||||||
i += 1
|
i += 1
|
||||||
compile_opts.append(arg)
|
compile_opts.append(arg)
|
||||||
|
|
||||||
if arg[:5] in ['-std=']:
|
if arg[:5] in ['-std=']:
|
||||||
compile_opts.append(arg)
|
compile_opts.append(arg)
|
||||||
|
|
||||||
# Options with one argument that should pass through to compiler
|
# Options with one argument that should pass through to compiler
|
||||||
if arg == 'include':
|
if arg in [ '-include', '-idirafter', '-iprefix',
|
||||||
|
'-iquote', '-isystem', '-iwithprefix',
|
||||||
|
'-iwithprefixbefore']:
|
||||||
compile_opts.append(arg)
|
compile_opts.append(arg)
|
||||||
compile_opts.append(args[i+1])
|
compile_opts.append(args[i+1])
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
|
# Options with no argument that should pass through to compiler
|
||||||
|
if arg == '-nostdinc':
|
||||||
|
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':
|
||||||
|
|
Loading…
Reference in New Issue