From 31d2176d1ea3d3151c8393e4fbcaa7ef4802e2d5 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Sat, 19 Apr 2008 18:42:26 +0000 Subject: [PATCH] Pass "-isysroot" option down to clang. llvm-svn: 49956 --- clang/utils/ccc | 4 ++-- clang/utils/ccc-analyzer | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/clang/utils/ccc b/clang/utils/ccc index 43093cb441dd..68081222a856 100755 --- a/clang/utils/ccc +++ b/clang/utils/ccc @@ -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 diff --git a/clang/utils/ccc-analyzer b/clang/utils/ccc-analyzer index f4b4861db46b..a4a4efdf54cb 100755 --- a/clang/utils/ccc-analyzer +++ b/clang/utils/ccc-analyzer @@ -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