diff options
| author | Filipe Cabecinhas <me@filcab.net> | 2015-01-23 06:59:51 +0000 |
|---|---|---|
| committer | Filipe Cabecinhas <me@filcab.net> | 2015-01-23 06:59:51 +0000 |
| commit | 2d4e4ff77e31f41c19b5d2f28dc23f8aa2a951a8 (patch) | |
| tree | a68dcc8f6818e35eab78da1ebb7a5b116a262bbd /libcxx/test | |
| parent | ac92bfc50570efdbb5fceba99e76c0707920f5a0 (diff) | |
| download | bcm5719-llvm-2d4e4ff77e31f41c19b5d2f28dc23f8aa2a951a8.tar.gz bcm5719-llvm-2d4e4ff77e31f41c19b5d2f28dc23f8aa2a951a8.zip | |
Add USES_TERMINAL to libcxx lit tests, if available
llvm-svn: 226900
Diffstat (limited to 'libcxx/test')
| -rw-r--r-- | libcxx/test/CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libcxx/test/CMakeLists.txt b/libcxx/test/CMakeLists.txt index 8cffd4331c9..45c74e12bdd 100644 --- a/libcxx/test/CMakeLists.txt +++ b/libcxx/test/CMakeLists.txt @@ -10,6 +10,12 @@ include(FindPythonInterp) if(PYTHONINTERP_FOUND) if(LIBCXX_BUILT_STANDALONE) set(LIT_EXECUTABLE "" CACHE FILEPATH "Path to LLVM's lit.py.") + # Make sure we can use the console pool for recent cmake and ninja > 1.5 + if(CMAKE_VERSION VERSION_LESS 3.1.20141117) + set(cmake_3_2_USES_TERMINAL) + else() + set(cmake_3_2_USES_TERMINAL USES_TERMINAL) + endif() else() set(LIT_EXECUTABLE "${CMAKE_SOURCE_DIR}/utils/lit/lit.py") endif() @@ -46,7 +52,8 @@ if(PYTHONINTERP_FOUND) ${LIT_ARGS} ${CMAKE_CURRENT_BINARY_DIR} DEPENDS cxx - COMMENT "Running libcxx tests") + COMMENT "Running libcxx tests" + ${cmake_3_2_USES_TERMINAL}) else() message(WARNING "Could not find Python, no check target will be available!") endif() |

