Execute llvm-lit with the python found by CMake by default
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Mon, 3 Aug 2020 09:51:14 +0000 (10:51 +0100)
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Mon, 3 Aug 2020 09:51:35 +0000 (10:51 +0100)
commitd23b15cc160775dcc5b6e2c2d7706a67be1225f1
tree5edfb1b9e9d3357debeaaccbfbcb34f9cc265bb9
parent03affa8099cba3876aca209daa213dcb880bc34a
Execute llvm-lit with the python found by CMake by default

The check-* targets run ${Python3_EXECUTABLE} $BUILD/bin/llvm-lit, but
running `./bin/llvm-lit $ARGS` from the build directory currently always
uses "python" to run llvm-lit. On most systems this will be python2.7 even
if we found python3 at CMake time.

Reviewed By: compnerd

Differential Revision: https://reviews.llvm.org/D84625
llvm/utils/gn/secondary/llvm/utils/llvm-lit/BUILD.gn
llvm/utils/llvm-lit/llvm-lit.in