forked from OSchip/llvm-project
Always use python-based SWIG generation script for CMake.
As a first step in addressing Bug #21921 this patch prefers the python-based SWIG generation by default rather than the shell-based SWIG generation any time python is enabled (e.g. LLDB_DISABLE_PYTHON is 0). Additionally, this patch changes the default value of LLDB_DISABLE_PYTHON from 1 to 0 on Windows. Anyone not using the CMake build is unaffected by this patch. llvm-svn: 224543
This commit is contained in:
parent
c242dbb3b6
commit
f27ae73617
|
@ -1,20 +1,13 @@
|
|||
if ( CMAKE_SYSTEM_NAME MATCHES "Windows" )
|
||||
set(LLDB_DEFAULT_DISABLE_PYTHON 1)
|
||||
set(LLDB_DEFAULT_DISABLE_PYTHON 0)
|
||||
set(LLDB_DEFAULT_DISABLE_CURSES 1)
|
||||
if (LLDB_DISABLE_PYTHON)
|
||||
set(LLDB_DEFAULT_ENABLE_PYTHON_SCRIPTS_SWIG_API_GENERATION 0)
|
||||
else()
|
||||
set(LLDB_DEFAULT_ENABLE_PYTHON_SCRIPTS_SWIG_API_GENERATION 1)
|
||||
endif()
|
||||
else()
|
||||
if ( __ANDROID_NDK__ )
|
||||
set(LLDB_DEFAULT_DISABLE_PYTHON 1)
|
||||
set(LLDB_DEFAULT_DISABLE_CURSES 1)
|
||||
set(LLDB_DEFAULT_ENABLE_PYTHON_SCRIPTS_SWIG_API_GENERATION 0)
|
||||
else()
|
||||
set(LLDB_DEFAULT_DISABLE_PYTHON 0)
|
||||
set(LLDB_DEFAULT_DISABLE_CURSES 0)
|
||||
set(LLDB_DEFAULT_ENABLE_PYTHON_SCRIPTS_SWIG_API_GENERATION 0)
|
||||
endif()
|
||||
endif()
|
||||
set(LLDB_DISABLE_PYTHON ${LLDB_DEFAULT_DISABLE_PYTHON} CACHE BOOL
|
||||
|
@ -22,6 +15,12 @@ set(LLDB_DISABLE_PYTHON ${LLDB_DEFAULT_DISABLE_PYTHON} CACHE BOOL
|
|||
set(LLDB_DISABLE_CURSES ${LLDB_DEFAULT_DISABLE_CURSES} CACHE BOOL
|
||||
"Disables the Curses integration.")
|
||||
|
||||
if ( LLDB_DISABLE_PYTHON )
|
||||
set(LLDB_DEFAULT_ENABLE_PYTHON_SCRIPTS_SWIG_API_GENERATION 0)
|
||||
else ()
|
||||
set(LLDB_DEFAULT_ENABLE_PYTHON_SCRIPTS_SWIG_API_GENERATION 1)
|
||||
endif ()
|
||||
|
||||
set(LLDB_ENABLE_PYTHON_SCRIPTS_SWIG_API_GENERATION ${LLDB_DEFAULT_ENABLE_PYTHON_SCRIPTS_SWIG_API_GENERATION} CACHE BOOL
|
||||
"Enables using new Python scripts for SWIG API generation .")
|
||||
|
||||
|
|
Loading…
Reference in New Issue