[cfe-commits] r171503 - /cfe/trunk/tools/scan-build/set-xcode-analyzer
Ted Kremenek
kremenek at apple.com
Fri Jan 4 11:04:43 PST 2013
Author: kremenek
Date: Fri Jan 4 13:04:42 2013
New Revision: 171503
URL: http://llvm.org/viewvc/llvm-project?rev=171503&view=rev
Log:
Require set-xcode-analyzer to run with Python 2.7 or later.
Addresses LLVM PR 11661.
Modified:
cfe/trunk/tools/scan-build/set-xcode-analyzer
Modified: cfe/trunk/tools/scan-build/set-xcode-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/set-xcode-analyzer?rev=171503&r1=171502&r2=171503&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/set-xcode-analyzer (original)
+++ cfe/trunk/tools/scan-build/set-xcode-analyzer Fri Jan 4 13:04:42 2013
@@ -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
More information about the cfe-commits
mailing list