]> granicus.if.org Git - clang/commitdiff
Pass "-arch" down to clang.
authorTed Kremenek <kremenek@apple.com>
Mon, 21 Apr 2008 20:28:01 +0000 (20:28 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 21 Apr 2008 20:28:01 +0000 (20:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50056 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc
utils/ccc-analyzer

index 68081222a856c2451c40adad48d12035aa9f8176..fd909f91494931bffaf7553d293563242de4b2a4 100755 (executable)
--- a/utils/ccc
+++ b/utils/ccc
@@ -99,7 +99,7 @@ def main(args):
             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 @@ def main(args):
             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 @@ def main(args):
             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
index a4a4efdf54cb53045be236883f95c23403ad3b49..d0f92b4e465fd2c59a00476241bff06ffec2ba4a 100755 (executable)
@@ -162,7 +162,7 @@ def main(args):
             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 @@ def main(args):
             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 @@ def main(args):
             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