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 | e756b65deb75be660232a63d7e23f76123d76480 (patch) | |
tree | 72d7f67bc0b7481237febef3b41d657f1a5803d4 | |
parent | a620bd8fb8c6f2080898e4aecf77b46e7e1a8f16 (diff) |
Require set-xcode-analyzer to run with Python 2.7 or later.
Addresses LLVM PR 11661.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171503 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | tools/scan-build/set-xcode-analyzer | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/scan-build/set-xcode-analyzer b/tools/scan-build/set-xcode-analyzer index 93824af255..e76e304467 100755 --- a/tools/scan-build/set-xcode-analyzer +++ b/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 |