31 lines
1.3 KiB
Diff
31 lines
1.3 KiB
Diff
--- lldb/scripts/Python/finishSwigPythonLLDB.py.orig 2018-06-05 09:36:40.625805600 +0300
|
|
+++ lldb/scripts/Python/finishSwigPythonLLDB.py 2018-06-05 09:38:43.015977000 +0300
|
|
@@ -40,6 +40,7 @@
|
|
import sys # System specific parameters and functions
|
|
import shutil # High-level operations on files and collections of files
|
|
import ctypes # Invoke Windows API for creating symlinks
|
|
+from sysconfig import _POSIX_BUILD
|
|
|
|
# Third party modules:
|
|
|
|
@@ -386,7 +387,7 @@
|
|
strBuildDir = os.path.join("..", "..", "..")
|
|
else:
|
|
# Resolve vstrSrcFile path relatively the build directory
|
|
- if eOSType == utilsOsType.EnumOsType.Windows:
|
|
+ if eOSType == utilsOsType.EnumOsType.Windows and not _POSIX_BUILD:
|
|
# On a Windows platform the vstrFrameworkPythonDir looks like:
|
|
# llvm\\build\\Lib\\site-packages\\lldb
|
|
strBuildDir = os.path.join("..", "..", "..")
|
|
--- lldb/scripts/CMakeLists.txt.orig 2018-06-05 10:17:16.415216100 +0300
|
|
+++ lldb/scripts/CMakeLists.txt 2018-06-05 10:17:28.695233300 +0300
|
|
@@ -11,7 +11,7 @@
|
|
|
|
include(FindPythonInterp)
|
|
|
|
-if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
|
|
+if (NOT MSVC)
|
|
set(SWIG_PYTHON_DIR
|
|
${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR})
|
|
else()
|