Don't assume LIT_EXECUTABLE points to a Python script, take 2
authorGreg Fitzgerald <garious@gmail.com>
Tue, 3 Feb 2015 18:47:37 +0000 (18:47 +0000)
committerGreg Fitzgerald <garious@gmail.com>
Tue, 3 Feb 2015 18:47:37 +0000 (18:47 +0000)
commit2e18729bcef90939b7d0be61a1503d64d5cae471
treedc7f96f2204530e6ae305987585e58251c40001a
parente63abfe70ee72c75a55d817e9f21c6288a80daa1
Don't assume LIT_EXECUTABLE points to a Python script, take 2

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: 228005
libcxx/test/CMakeLists.txt