]> granicus.if.org Git - clang/commitdiff
Pass "-isysroot" option down to clang.
authorTed Kremenek <kremenek@apple.com>
Sat, 19 Apr 2008 18:42:26 +0000 (18:42 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 19 Apr 2008 18:42:26 +0000 (18:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49956 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc
utils/ccc-analyzer

index 43093cb441dd4026e84a19936a6b540c5eb2c9a8..68081222a856c2451c40adad48d12035aa9f8176 100755 (executable)
--- 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
index f4b4861db46b1e778c256d210790d27023a96cbf..a4a4efdf54cb53045be236883f95c23403ad3b49 100755 (executable)
@@ -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