зеркало из https://github.com/microsoft/clang-1.git
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
This commit is contained in:
Родитель
6bb205c469
Коммит
69b6442f3c
|
@ -64,9 +64,13 @@ def analyze(args,language,output,files,verbose,htmldir):
|
||||||
args = command + files + target.split()
|
args = command + files + target.split()
|
||||||
else:
|
else:
|
||||||
command = 'clang --grsimple'.split()
|
command = 'clang --grsimple'.split()
|
||||||
args = command + args + [ '-o', htmldir ]
|
args = command + args;
|
||||||
print_args.append('-o')
|
|
||||||
print_args.append(htmldir)
|
if htmldir is not None:
|
||||||
|
args.append('-o')
|
||||||
|
print_args.append('-o')
|
||||||
|
args.append(htmldir)
|
||||||
|
print_args.append(htmldir)
|
||||||
|
|
||||||
if verbose:
|
if verbose:
|
||||||
print >> sys.stderr, ' '.join(command+print_args)
|
print >> sys.stderr, ' '.join(command+print_args)
|
||||||
|
@ -121,9 +125,6 @@ def main(args):
|
||||||
verbose =1
|
verbose =1
|
||||||
|
|
||||||
htmldir = os.environ.get('CCC_ANALYZER_HTML')
|
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
|
i = 0
|
||||||
while i < len(args):
|
while i < len(args):
|
||||||
|
|
Загрузка…
Ссылка в новой задаче