From 39a79734e7a4930290aaa8c37a0f6b55fad5698a 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49956 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/ccc | 4 ++-- utils/ccc-analyzer | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/ccc b/utils/ccc index 43093cb441..68081222a8 100755 --- a/utils/ccc +++ b/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/utils/ccc-analyzer b/utils/ccc-analyzer index f4b4861db4..a4a4efdf54 100755 --- a/utils/ccc-analyzer +++ b/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 -- 2.50.1