[PATCH] D64822: Don't require python exe and lib versions to match while crosscompiling

Nathan Lanza via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 16 16:54:43 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL366285: Don't require python exe and lib versions to match while crosscompiling (authored by lanza, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64822/new/

https://reviews.llvm.org/D64822

Files:
  lldb/trunk/cmake/modules/LLDBConfig.cmake


Index: lldb/trunk/cmake/modules/LLDBConfig.cmake
===================================================================
--- lldb/trunk/cmake/modules/LLDBConfig.cmake
+++ lldb/trunk/cmake/modules/LLDBConfig.cmake
@@ -198,7 +198,8 @@
     find_package(PythonLibs REQUIRED)
   endif()
 
-  if (NOT PYTHON_VERSION_STRING VERSION_EQUAL PYTHONLIBS_VERSION_STRING)
+  if (NOT PYTHON_VERSION_STRING VERSION_EQUAL PYTHONLIBS_VERSION_STRING AND
+      NOT CMAKE_CROSSCOMPILING)
     message(FATAL_ERROR "Found incompatible Python interpreter (${PYTHON_VERSION_STRING}) and Python libraries (${PYTHONLIBS_VERSION_STRING})")
   endif()
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64822.210221.patch
Type: text/x-patch
Size: 623 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190716/6a6e23fb/attachment.bin>


More information about the llvm-commits mailing list