@@ -59,10 +59,8 @@ endfunction()
59
59
function (finish_swig_python swig_target lldb_python_bindings_dir lldb_python_target_dir)
60
60
# Add a Post-Build Event to copy over Python files and create the symlink to
61
61
# liblldb.so for the Python API(hardlink on Windows).
62
- # Note that Swig-generated code is located one level deeper in the `native`
63
- # module, in order to avoid cyclic importing.
64
62
add_custom_target (${swig_target} ALL VERBATIM
65
- COMMAND ${CMAKE_COMMAND} -E make_directory ${lldb_python_target_dir} /native/
63
+ COMMAND ${CMAKE_COMMAND} -E make_directory ${lldb_python_target_dir}
66
64
DEPENDS ${lldb_python_bindings_dir} /lldb.py
67
65
COMMENT "Python script sym-linking LLDB Python API" )
68
66
@@ -76,8 +74,6 @@ function(finish_swig_python swig_target lldb_python_bindings_dir lldb_python_tar
76
74
"${LLDB_SOURCE_DIR} /source/Interpreter/embedded_interpreter.py"
77
75
"${lldb_python_target_dir} " )
78
76
79
- create_python_package(${swig_target} ${lldb_python_target_dir} "native" FILES )
80
-
81
77
# Distribute the examples as python packages.
82
78
create_python_package(
83
79
${swig_target}
@@ -145,7 +141,7 @@ function(finish_swig_python swig_target lldb_python_bindings_dir lldb_python_tar
145
141
endif ()
146
142
set (LIBLLDB_SYMLINK_OUTPUT_FILE "_lldb${LLDB_PYTHON_EXT_SUFFIX} " )
147
143
create_relative_symlink(${swig_target} ${LIBLLDB_SYMLINK_DEST}
148
- ${lldb_python_target_dir} /native/ ${LIBLLDB_SYMLINK_OUTPUT_FILE} )
144
+ ${lldb_python_target_dir} ${LIBLLDB_SYMLINK_OUTPUT_FILE} )
149
145
150
146
151
147
if (NOT WIN32 )
0 commit comments