[Lldb-commits] [lldb] b81c8c6 - [lldb] Remove spurious file
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 9 15:32:16 PST 2020
Author: Jonas Devlieghere
Date: 2020-01-09T15:32:09-08:00
New Revision: b81c8c6976b987a25fc54fa2bf3524919759a898
URL: https://github.com/llvm/llvm-project/commit/b81c8c6976b987a25fc54fa2bf3524919759a898
DIFF: https://github.com/llvm/llvm-project/commit/b81c8c6976b987a25fc54fa2bf3524919759a898.diff
LOG: [lldb] Remove spurious file
Added:
Modified:
Removed:
lldb/lldb/cmake/modules/FindPythonInterpAndLibs.cmake
################################################################################
diff --git a/lldb/lldb/cmake/modules/FindPythonInterpAndLibs.cmake b/lldb/lldb/cmake/modules/FindPythonInterpAndLibs.cmake
deleted file mode 100644
index 90c902f74ae5..000000000000
--- a/lldb/lldb/cmake/modules/FindPythonInterpAndLibs.cmake
+++ /dev/null
@@ -1,51 +0,0 @@
-#.rst:
-# FindPythonInterpndLibs
-# -----------
-#
-# Find the python interpreter and libraries as a whole.
-
-if(PYTHON_LIBRARIES AND PYTHON_INCLUDE_DIRS AND PYTHON_EXECUTABLE)
- set(PYTHONINTERPANDLIBS_FOUND TRUE)
-else()
- if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
- find_package(Python3 COMPONENTS Interpreter Development QUIET)
- if (Python3_FOUND AND Python3_Interpreter_FOUND)
- set(PYTHON_LIBRARIES ${Python3_LIBRARIES})
- set(PYTHON_INCLUDE_DIRS ${Python3_INCLUDE_DIRS})
- set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})
- mark_as_advanced(
- PYTHON_LIBRARIES
- PYTHON_INCLUDE_DIRS
- PYTHON_EXECUTABLE)
- endif()
- else()
- find_package(PythonInterp QUIET)
- find_package(PythonLibs QUIET)
- if(PYTHONINTERP_FOUND AND PYTHONLIBS_FOUND)
- if (NOT CMAKE_CROSSCOMPILING)
- string(REPLACE "." ";" pythonlibs_version_list ${PYTHONLIBS_VERSION_STRING})
- list(GET pythonlibs_version_list 0 pythonlibs_major)
- list(GET pythonlibs_version_list 1 pythonlibs_minor)
-
- # Ignore the patch version. Some versions of macOS report a
diff erent
- # patch version for the system provided interpreter and libraries.
- if (CMAKE_CROSSCOMPILING OR (PYTHON_VERSION_MAJOR VERSION_EQUAL pythonlibs_major AND
- PYTHON_VERSION_MINOR VERSION_EQUAL pythonlibs_minor))
- mark_as_advanced(
- PYTHON_LIBRARIES
- PYTHON_INCLUDE_DIRS
- PYTHON_EXECUTABLE)
- endif()
- endif()
- endif()
- endif()
-
- include(FindPackageHandleStandardArgs)
- find_package_handle_standard_args(PythonInterpAndLibs
- FOUND_VAR
- PYTHONINTERPANDLIBS_FOUND
- REQUIRED_VARS
- PYTHON_LIBRARIES
- PYTHON_INCLUDE_DIRS
- PYTHON_EXECUTABLE)
-endif()
More information about the lldb-commits
mailing list