Skip to content

Commit

Permalink
[lldb] Remove legacy six module for py2->py3
Browse files Browse the repository at this point in the history
LLDB only supports Python3 now, so the `six` shim for Python2 is no longer necessary.

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D142140
  • Loading branch information
rupprecht committed Jan 25, 2023
1 parent 5dd7c16 commit 5ed6d99
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 913 deletions.
7 changes: 0 additions & 7 deletions lldb/bindings/python/CMakeLists.txt
Expand Up @@ -60,13 +60,6 @@ function(finish_swig_python swig_target lldb_python_bindings_dir lldb_python_tar
DEPENDS ${lldb_python_bindings_dir}/lldb.py
COMMENT "Python script sym-linking LLDB Python API")

if(NOT LLDB_USE_SYSTEM_SIX)
add_custom_command(TARGET ${swig_target} POST_BUILD VERBATIM
COMMAND ${CMAKE_COMMAND} -E copy
"${LLDB_SOURCE_DIR}/third_party/Python/module/six/six.py"
"${lldb_python_target_dir}/../six.py")
endif()

add_custom_command(TARGET ${swig_target} POST_BUILD VERBATIM
COMMAND ${CMAKE_COMMAND} -E copy
"${lldb_python_bindings_dir}/lldb.py"
Expand Down
1 change: 0 additions & 1 deletion lldb/cmake/modules/LLDBConfig.cmake
Expand Up @@ -65,7 +65,6 @@ add_optional_dependency(LLDB_ENABLE_PYTHON "Enable Python scripting support in L
add_optional_dependency(LLDB_ENABLE_LIBXML2 "Enable Libxml 2 support in LLDB" LibXml2 LIBXML2_FOUND VERSION 2.8)
add_optional_dependency(LLDB_ENABLE_FBSDVMCORE "Enable libfbsdvmcore support in LLDB" FBSDVMCore FBSDVMCore_FOUND QUIET)

option(LLDB_USE_SYSTEM_SIX "Use six.py shipped with system and do not install a copy of it" OFF)
option(LLDB_USE_ENTITLEMENTS "When codesigning, use entitlements if available" ON)
option(LLDB_BUILD_FRAMEWORK "Build LLDB.framework (Darwin only)" OFF)
option(LLDB_NO_INSTALL_DEFAULT_RPATH "Disable default RPATH settings in binaries" OFF)
Expand Down
18 changes: 0 additions & 18 deletions lldb/third_party/Python/module/six/LICENSE

This file was deleted.

0 comments on commit 5ed6d99

Please sign in to comment.