aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-03-31 21:20:32 +0000
committerTed Kremenek <kremenek@apple.com>2008-03-31 21:20:32 +0000
commit69b6442f3c5524ee1014b6a9adb687b376660f60 (patch)
treefdfc0389d3474bc6367c0b10c8c5b9e70b31e567
parent6bb205c469e0a6c73b7979fdbcbb2488b088a66e (diff)
Do not abort ccc-analyzer script if an HTML directory is not specified.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48997 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xutils/ccc-analyzer13
1 files changed, 7 insertions, 6 deletions
diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer
index 4912493db1..8427745127 100755
--- a/utils/ccc-analyzer
+++ b/utils/ccc-analyzer
@@ -64,9 +64,13 @@ def analyze(args,language,output,files,verbose,htmldir):
args = command + files + target.split()
else:
command = 'clang --grsimple'.split()
- args = command + args + [ '-o', htmldir ]
- print_args.append('-o')
- print_args.append(htmldir)
+ args = command + args;
+
+ if htmldir is not None:
+ args.append('-o')
+ print_args.append('-o')
+ args.append(htmldir)
+ print_args.append(htmldir)
if verbose:
print >> sys.stderr, ' '.join(command+print_args)
@@ -121,9 +125,6 @@ def main(args):
verbose =1
htmldir = os.environ.get('CCC_ANALYZER_HTML')
- if htmldir is None:
- print >> sys.stderr, 'error: CCC_ANALYZER_HTML environment variable not set.'
- sys.exit(1)
i = 0
while i < len(args):