diff options
| author | Ted Kremenek <kremenek@apple.com> | 2013-01-04 19:04:42 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2013-01-04 19:04:42 +0000 |
| commit | 8533dd9f58e81ad3c7274e7392cee86cf55fc276 (patch) | |
| tree | d2d578fb325b46196622fc731e2838eb0e54faf5 /clang/tools/scan-build/set-xcode-analyzer | |
| parent | 9deaef7f44115c9defa2af3d91bd589e172074e7 (diff) | |
| download | bcm5719-llvm-8533dd9f58e81ad3c7274e7392cee86cf55fc276.tar.gz bcm5719-llvm-8533dd9f58e81ad3c7274e7392cee86cf55fc276.zip | |
Require set-xcode-analyzer to run with Python 2.7 or later.
Addresses LLVM PR 11661.
llvm-svn: 171503
Diffstat (limited to 'clang/tools/scan-build/set-xcode-analyzer')
| -rwxr-xr-x | clang/tools/scan-build/set-xcode-analyzer | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/tools/scan-build/set-xcode-analyzer b/clang/tools/scan-build/set-xcode-analyzer index 93824af255d..e76e3044676 100755 --- a/clang/tools/scan-build/set-xcode-analyzer +++ b/clang/tools/scan-build/set-xcode-analyzer @@ -4,9 +4,13 @@ # want to the use the system version of Python on Mac OS X. # This one has the scripting bridge enabled. +import sys +if sys.version_info < (2, 7): + print "set-xcode-analyzer requires Python 2.7 or later" + sys.exit(1) + import os import subprocess -import sys import re import tempfile import shutil |

