]> granicus.if.org Git - clang/commitdiff
Require set-xcode-analyzer to run with Python 2.7 or later.
authorTed Kremenek <kremenek@apple.com>
Fri, 4 Jan 2013 19:04:42 +0000 (19:04 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 4 Jan 2013 19:04:42 +0000 (19:04 +0000)
Addresses LLVM PR 11661.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171503 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/set-xcode-analyzer

index 93824af255d61536468078328c95d6f43d174e68..e76e30446763a543811c4438f6672366226e341c 100755 (executable)
@@ -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