diff options
author | Petr Hosek <phosek@chromium.org> | 2017-01-11 23:56:33 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2017-01-11 23:56:33 +0000 |
commit | 895f24ce17577311c139b372ac56becf3781d567 (patch) | |
tree | f95cf9a70d91b401f7c69ab53950a0a0e7541e36 /libcxx/cmake/Modules | |
parent | 8782d22b26d12bee45a656e902125137121866d0 (diff) | |
download | bcm5719-llvm-895f24ce17577311c139b372ac56becf3781d567.tar.gz bcm5719-llvm-895f24ce17577311c139b372ac56becf3781d567.zip |
Revert "[CMake][libcxx] Move Python check to main CMake file"
This reverts commit 39441fe9f00a58ffc2fdff92a4b0e8a280a5f444.
llvm-svn: 291728
Diffstat (limited to 'libcxx/cmake/Modules')
-rw-r--r-- | libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake b/libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake index ee0f3182e54..7fee839d273 100644 --- a/libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake +++ b/libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake @@ -95,6 +95,13 @@ macro(configure_out_of_tree_llvm) endif() # LLVM Options -------------------------------------------------------------- + include(FindPythonInterp) + if( NOT PYTHONINTERP_FOUND ) + message(WARNING "Failed to find python interpreter. " + "The libc++ test suite will be disabled.") + set(LLVM_INCLUDE_TESTS OFF) + endif() + if (NOT DEFINED LLVM_INCLUDE_TESTS) set(LLVM_INCLUDE_TESTS ${LLVM_FOUND}) endif() |