diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-21 20:28:01 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-21 20:28:01 +0000 |
commit | d0eef024e9fce128903b34e8e1752f3b92e06bda (patch) | |
tree | 17168515f059012cbf83e2f7dff9e4ae2d4fd2ee | |
parent | d0c33d3527fff8315accb7e54b1bc82d593973cb (diff) |
Pass "-arch" down to clang.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50056 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | utils/ccc | 6 | ||||
-rwxr-xr-x | utils/ccc-analyzer | 6 |
2 files changed, 6 insertions, 6 deletions
@@ -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 diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer index a4a4efdf54..d0f92b4e46 100755 --- a/utils/ccc-analyzer +++ b/utils/ccc-analyzer @@ -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 |