aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-05-01 21:26:22 +0000
committerTed Kremenek <kremenek@apple.com>2008-05-01 21:26:22 +0000
commit73c083c27c00228fce8c9f139dc7cda5754b0837 (patch)
treeeba8f71995643e9dfc77aa9f0cb4b095bcc3c08a
parent93213bb42c7ff7a2cef40c8c037f225844513443 (diff)
Add missing "-" that prefix arguments to forward to clang.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50540 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xutils/ccc-analyzer4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer
index e453cec4a2..d19955381e 100755
--- a/utils/ccc-analyzer
+++ b/utils/ccc-analyzer
@@ -184,11 +184,11 @@ def main(args):
i += 1
# Options with no argument that should pass through to compiler
- if arg in [ '-nostdinc', 'fobjc-gc-only', 'fobjc-gc' ]:
+ if arg in [ '-nostdinc', '-fobjc-gc-only', '-fobjc-gc' ]:
compile_opts.append(arg)
# Options with one argument that should pass through to linker
- if arg == 'framework':
+ if arg == '-framework':
link_opts.append(arg)
link_opts.append(args[i+1])
i += 1