Pass "-isysroot" option down to clang.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49956 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2008-04-19 18:42:26 +00:00
Родитель 7ea02e6822
Коммит 39a79734e7
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -112,7 +112,7 @@ def main(args):
compile_opts.append(arg)
# Options with one argument that should pass through
if arg in ['-include']:
if arg in ['-include', '-isysroot']:
compile_opts.append(arg)
compile_opts.append(args[i+1])
i += 1
@ -124,7 +124,7 @@ def main(args):
link_opts.append(arg)
# Options with one argument that should pass through
if arg in ['-framework']:
if arg in ['-framework', '-isysroot']:
link_opts.append(arg)
link_opts.append(args[i+1])
i += 1

Просмотреть файл

@ -37,7 +37,7 @@ def run(args):
if code:
sys.exit(code)
def compile(args):
def compile(args,verbose):
# We MUST print to stderr. Some clients use the stdout output of
# gcc for various purposes.
print >> sys.stderr, '\n'
@ -175,7 +175,7 @@ def main(args):
compile_opts.append(arg)
# Options with one argument that should pass through
if arg in ['-include']:
if arg in ['-include', '-isysroot']:
compile_opts.append(arg)
compile_opts.append(args[i+1])
i += 1
@ -187,7 +187,7 @@ def main(args):
link_opts.append(arg)
# Options with one argument that should pass through
if arg in ['-framework']:
if arg in ['-framework', '-isysroot']:
link_opts.append(arg)
link_opts.append(args[i+1])
i += 1