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 /llvm/utils/llvm-lit/llvm-lit.in | |
parent | 221b22d695adb3dca64fd9c059a40eaa42789187 (diff) | |
download | bcm5719-llvm-edb9ece4d3fcb034278186dd0055e112764dd44e.tar.gz bcm5719-llvm-edb9ece4d3fcb034278186dd0055e112764dd44e.zip |
[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
Diffstat (limited to 'llvm/utils/llvm-lit/llvm-lit.in')
-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 fc962021d73..1ee68ab688a 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 |