Pass "-isysroot" option down to clang.

llvm-svn: 49956
This commit is contained in:
Ted Kremenek 2008-04-19 18:42:26 +00:00
parent 6267835f57
commit 31d2176d1e
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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