From 9230ff9ba37d143e9383974f6e302c805a20bd70 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sat, 14 Feb 2015 07:05:15 +0000 Subject: [PATCH] [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229244 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/llvm-lit/llvm-lit.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/llvm-lit/llvm-lit.in b/utils/llvm-lit/llvm-lit.in index fc962021d73..1ee68ab688a 100755 --- a/utils/llvm-lit/llvm-lit.in +++ b/utils/llvm-lit/llvm-lit.in @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2.7 import os import sys -- 2.34.1