Don't assume LIT_EXECUTABLE points to a Python script
authorGreg Fitzgerald <garious@gmail.com>
Tue, 3 Feb 2015 18:02:04 +0000 (18:02 +0000)
committerGreg Fitzgerald <garious@gmail.com>
Tue, 3 Feb 2015 18:02:04 +0000 (18:02 +0000)
commitd9ecf1ae7cfde3cd18cdedc4b95b8921a5f81378
tree61d43e5c19d69d93f83b8569f33b9d7daa69f3db
parentcdba4e1bccb84a909db3f4183147f2e543f2ea10
Don't assume LIT_EXECUTABLE points to a Python script

Before this patch, the CMake build assumed LIT_EXECUTABLE pointed
to a Python script, not an executable.  If you were to pass in an
executable, such as the result of py2exe on lit.py, the build would
fall over.

With this patch, the CMake build assumes LIT_EXECUTABLE is an
executable.  You can continue setting it to lit.py, but it will
now use its shebang to find a Python interpreter.

Differential Revision: http://reviews.llvm.org/D7315

llvm-svn: 227994
libcxx/test/CMakeLists.txt