diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-03-26 01:11:15 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-03-26 01:11:15 +0000 |
commit | 282890d7112a7c0aa03e5be0a7a33b8ef04f1d67 (patch) | |
tree | fed55b6f7033e7ee2687196739764930b7ea41e8 /lldb/source/Plugins/ScriptInterpreter/Python | |
parent | 1b1523c6ff228942b61092fcf5a1b06a07171a6e (diff) | |
download | bcm5719-llvm-282890d7112a7c0aa03e5be0a7a33b8ef04f1d67.tar.gz bcm5719-llvm-282890d7112a7c0aa03e5be0a7a33b8ef04f1d67.zip |
[Python] Define empty SWIG wrapper for unit testin"
The python plugin uses wrappers generated by swig. For the symbols to be
available, we'd need to link against liblldb, which is not an option
because the symbols could conflict with the static library we are
testing. Instead we define the symbols ourselves in the unit test.
llvm-svn: 356971
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt b/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt index 86ff4f689bd..56eacc941d6 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt +++ b/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt @@ -11,16 +11,10 @@ if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows") endif() endif() -if(NOT LLDB_DISABLE_PYTHON) - get_target_property(lldb_scripts_dir swig_wrapper BINARY_DIR) - set(lldb_python_wrapper ${lldb_scripts_dir}/LLDBWrapPython.cpp) -endif() - add_lldb_library(lldbPluginScriptInterpreterPython PLUGIN PythonDataObjects.cpp PythonExceptionState.cpp ScriptInterpreterPython.cpp - ${lldb_python_wrapper} LINK_LIBS lldbBreakpoint @@ -32,24 +26,3 @@ add_lldb_library(lldbPluginScriptInterpreterPython PLUGIN LINK_COMPONENTS Support ) - -if(lldb_python_wrapper) - add_dependencies(lldbPluginScriptInterpreterPython swig_wrapper) - - if (MSVC) - set_property(SOURCE ${lldb_python_wrapper} APPEND_STRING PROPERTY COMPILE_FLAGS " /W0") - else() - set_property(SOURCE ${lldb_python_wrapper} APPEND_STRING PROPERTY COMPILE_FLAGS " -w") - endif() - - set_source_files_properties(${lldb_python_wrapper} PROPERTIES GENERATED ON) - if (CLANG_CL) - set_property(SOURCE ${lldb_python_wrapper} APPEND_STRING - PROPERTY COMPILE_FLAGS " -Wno-unused-function") - endif() - if (LLVM_COMPILER_IS_GCC_COMPATIBLE AND - NOT "${CMAKE_SYSTEM_NAME}" MATCHES "Darwin") - set_property(SOURCE ${lldb_python_wrapper} APPEND_STRING - PROPERTY COMPILE_FLAGS " -Wno-sequence-point -Wno-cast-qual") - endif () -endif() |