[cfe-commits] r49956 - in /cfe/trunk/utils: ccc ccc-analyzer

Ted Kremenek kremenek at apple.com
Sat Apr 19 11:42:27 PDT 2008


Author: kremenek
Date: Sat Apr 19 13:42:26 2008
New Revision: 49956

URL: http://llvm.org/viewvc/llvm-project?rev=49956&view=rev
Log:
Pass "-isysroot" option down to clang.

Modified:
    cfe/trunk/utils/ccc
    cfe/trunk/utils/ccc-analyzer

Modified: cfe/trunk/utils/ccc
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc?rev=49956&r1=49955&r2=49956&view=diff

==============================================================================
--- cfe/trunk/utils/ccc (original)
+++ cfe/trunk/utils/ccc Sat Apr 19 13:42:26 2008
@@ -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

Modified: cfe/trunk/utils/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc-analyzer?rev=49956&r1=49955&r2=49956&view=diff

==============================================================================
--- cfe/trunk/utils/ccc-analyzer (original)
+++ cfe/trunk/utils/ccc-analyzer Sat Apr 19 13:42:26 2008
@@ -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





More information about the cfe-commits mailing list