-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfix-lldb-build.patch
38 lines (36 loc) · 1.43 KB
/
fix-lldb-build.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
diff --git a/cmake/modules/LLDBConfig.cmake b/cmake/modules/LLDBConfig.cmake
index 5bba612..39e50ae 100644
--- a/cmake/modules/LLDBConfig.cmake
+++ b/cmake/modules/LLDBConfig.cmake
@@ -182,6 +182,7 @@ if (NOT LLDB_DISABLE_PYTHON)
add_definitions( -DLLDB_PYTHON_HOME="${LLDB_PYTHON_HOME}" )
endif()
else()
+ set(Python_ADDITIONAL_VERSIONS 2.7)
find_package(PythonLibs REQUIRED)
endif()
diff --git a/cmake/modules/LLDBStandalone.cmake b/cmake/modules/LLDBStandalone.cmake
index cf762a6..50e96cc 100644
--- a/cmake/modules/LLDBStandalone.cmake
+++ b/cmake/modules/LLDBStandalone.cmake
@@ -74,7 +74,7 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
include(HandleLLVMOptions)
if (PYTHON_EXECUTABLE STREQUAL "")
- set(Python_ADDITIONAL_VERSIONS 3.5 3.4 3.3 3.2 3.1 3.0 2.7 2.6 2.5)
+ set(Python_ADDITIONAL_VERSIONS 2.7 3.5 3.4 3.3 3.2 3.1 3.0 2.6 2.5)
include(FindPythonInterp)
if( NOT PYTHONINTERP_FOUND )
message(FATAL_ERROR
diff --git a/scripts/Python/modules/readline/readline.cpp b/scripts/Python/modules/readline/readline.cpp
index d4b4962..1fd8547 100644
--- a/scripts/Python/modules/readline/readline.cpp
+++ b/scripts/Python/modules/readline/readline.cpp
@@ -90,7 +90,7 @@ initreadline(void)
#if PY_MAJOR_VERSION >= 3
return PyModule_Create(&readline_module);
#else
- Py_InitModule4(
+ Py_InitModule4_64(
"readline",
moduleMethods,
moduleDocumentation,