[llvm] r229244 - [lit] Make the 'llvm-lit' utility defend against a system where Python3
Chandler Carruth
chandlerc at gmail.com
Fri Feb 13 23:05:15 PST 2015
Author: chandlerc
Date: Sat Feb 14 01:05:15 2015
New Revision: 229244
URL: http://llvm.org/viewvc/llvm-project?rev=229244&view=rev
Log:
[lit] Make the 'llvm-lit' utility defend against a system where Python3
is the default.
The lit.cfg files are not all valid Python3 and I've no idea if anyone
is really prepared to update them. The easiest way I know of to ensure
that this script uses Python 2 is to use 'python2.7' in the command. Mac
and Linux are definitely fine with this and I think other platforms will
be as well, but if anyone struggles with this set up and has better
ideas, let me know.
Modified:
llvm/trunk/utils/llvm-lit/llvm-lit.in
Modified: llvm/trunk/utils/llvm-lit/llvm-lit.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/llvm-lit/llvm-lit.in?rev=229244&r1=229243&r2=229244&view=diff
==============================================================================
--- llvm/trunk/utils/llvm-lit/llvm-lit.in (original)
+++ llvm/trunk/utils/llvm-lit/llvm-lit.in Sat Feb 14 01:05:15 2015
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2.7
import os
import sys
More information about the llvm-commits
mailing list