diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2015-02-14 07:05:15 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2015-02-14 07:05:15 +0000 |
| commit | edb9ece4d3fcb034278186dd0055e112764dd44e (patch) | |
| tree | bb5c7cffccdcddecf02e078a66e9f3dff89441df | |
| parent | 221b22d695adb3dca64fd9c059a40eaa42789187 (diff) | |
| download | llvm-edb9ece4d3fcb034278186dd0055e112764dd44e.zip llvm-edb9ece4d3fcb034278186dd0055e112764dd44e.tar.gz llvm-edb9ece4d3fcb034278186dd0055e112764dd44e.tar.bz2 | |
[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.
llvm-svn: 229244
| -rwxr-xr-x | llvm/utils/llvm-lit/llvm-lit.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/llvm-lit/llvm-lit.in b/llvm/utils/llvm-lit/llvm-lit.in index fc96202..1ee68ab 100755 --- a/llvm/utils/llvm-lit/llvm-lit.in +++ b/llvm/utils/llvm-lit/llvm-lit.in @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2.7 import os import sys |
