Skip to content

Commit f0f2d58

Browse files
committed
Improve the set of the Python libraries during the cmake build.
Thanks to Kal Conley for the patch llvm-svn: 194815
1 parent 9c5ae47 commit f0f2d58

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lldb/source/CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,12 @@ set( CLANG_USED_LIBS
139139
clangSerialization
140140
)
141141

142+
set(LLDB_SYSTEM_LIBS)
142143
if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
143-
set( LLDB_SYSTEM_LIBS
144-
edit
145-
python2.7
146-
)
144+
list(APPEND LLDB_SYSTEM_LIBS edit)
145+
endif()
146+
if (NOT LLDB_DISABLE_PYTHON)
147+
list(APPEND LLDB_SYSTEM_LIBS ${PYTHON_LIBRARIES})
147148
endif()
148149

149150
set( LLVM_LINK_COMPONENTS

0 commit comments

Comments
 (0)