Require set-xcode-analyzer to run with Python 2.7 or later.

Addresses LLVM PR 11661.

llvm-svn: 171503
This commit is contained in:
Ted Kremenek 2013-01-04 19:04:42 +00:00
parent 9deaef7f44
commit 8533dd9f58
1 changed files with 5 additions and 1 deletions

View File

@ -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