Pass "-isysroot" option down to clang.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49956 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/ccc b/utils/ccc
index 43093cb..6808122 100755
--- a/utils/ccc
+++ b/utils/ccc
@@ -112,7 +112,7 @@
             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 @@
             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 f4b4861..a4a4efd 100755
--- a/utils/ccc-analyzer
+++ b/utils/ccc-analyzer
@@ -37,7 +37,7 @@
     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 @@
             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 @@
             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