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

Ted Kremenek kremenek at apple.com
Mon Apr 21 13:28:01 PDT 2008


Author: kremenek
Date: Mon Apr 21 15:28:01 2008
New Revision: 50056

URL: http://llvm.org/viewvc/llvm-project?rev=50056&view=rev
Log:
Pass "-arch" 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=50056&r1=50055&r2=50056&view=diff

==============================================================================
--- cfe/trunk/utils/ccc (original)
+++ cfe/trunk/utils/ccc Mon Apr 21 15:28:01 2008
@@ -99,7 +99,7 @@
             link_opts.append(arg)
         
         # Options with one argument that should be ignored
-        if arg in ['--param', '-arch', '-u']:
+        if arg in ['--param', '-u']:
             i += 1
 
         # Prefix matches for the compile mode
@@ -112,7 +112,7 @@
             compile_opts.append(arg)
 
         # Options with one argument that should pass through
-        if arg in ['-include', '-isysroot']:
+        if arg in ['-include', '-isysroot', '-arch']:
             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', '-isysroot']:
+        if arg in ['-framework', '-isysroot', '-arch']:
             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=50056&r1=50055&r2=50056&view=diff

==============================================================================
--- cfe/trunk/utils/ccc-analyzer (original)
+++ cfe/trunk/utils/ccc-analyzer Mon Apr 21 15:28:01 2008
@@ -162,7 +162,7 @@
             link_opts.append(arg)
         
         # Options with one argument that should be ignored
-        if arg in ['--param', '-arch', '-u']:
+        if arg in ['--param', '-u']:
             i += 1
 
         # Prefix matches for the compile mode
@@ -175,7 +175,7 @@
             compile_opts.append(arg)
 
         # Options with one argument that should pass through
-        if arg in ['-include', '-isysroot']:
+        if arg in ['-include', '-isysroot', '-arch']:
             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', '-isysroot']:
+        if arg in ['-framework', '-isysroot', '-arch']:
             link_opts.append(arg)
             link_opts.append(args[i+1])
             i += 1





More information about the cfe-commits mailing list