This revision was automatically updated to reflect the committed changes. Closed by commit rL285484: Limit LLDB_EXPORT_ALL_SYMBOLS to lldb symbols (authored by tfiala).
Changed prior to commit: https://reviews.llvm.org/D26093?vs=76229&id=76282#toc Repository: rL LLVM https://reviews.llvm.org/D26093 Files: lldb/trunk/source/API/CMakeLists.txt lldb/trunk/source/API/liblldb-private.exports Index: lldb/trunk/source/API/CMakeLists.txt =================================================================== --- lldb/trunk/source/API/CMakeLists.txt +++ lldb/trunk/source/API/CMakeLists.txt @@ -103,16 +103,13 @@ # If we're not exporting all symbols, we'll want to explicitly set # the exported symbols here. This prevents 'log enable --stack ...' # from working on some systems but limits the liblldb size. - MESSAGE("-- Symbols (liblldb): only exporting liblldb.exports symbols") + MESSAGE("-- Symbols (liblldb): exporting all symbols from the lldb namespace") add_llvm_symbol_exports(liblldb ${CMAKE_CURRENT_SOURCE_DIR}/liblldb.exports) else() # Don't use an explicit export. Instead, tell the linker to # export all symbols. - MESSAGE("-- Symbols (liblldb): exporting all symbols") - # Darwin linker doesn't need this extra step. - if (NOT CMAKE_SYSTEM_NAME MATCHES "Darwin") - lldb_append_link_flags(liblldb "-Wl,--export-dynamic") - endif() + MESSAGE("-- Symbols (liblldb): exporting all symbols from the lldb and lldb_private namespaces") + add_llvm_symbol_exports(liblldb ${CMAKE_CURRENT_SOURCE_DIR}/liblldb-private.exports) endif() endif() Index: lldb/trunk/source/API/liblldb-private.exports =================================================================== --- lldb/trunk/source/API/liblldb-private.exports +++ lldb/trunk/source/API/liblldb-private.exports @@ -0,0 +1,6 @@ +_ZN4lldb* +_ZNK4lldb* +_ZN12lldb_private* +_ZNK12lldb_private* +init_lld* +PyInit__lldb*
Index: lldb/trunk/source/API/CMakeLists.txt =================================================================== --- lldb/trunk/source/API/CMakeLists.txt +++ lldb/trunk/source/API/CMakeLists.txt @@ -103,16 +103,13 @@ # If we're not exporting all symbols, we'll want to explicitly set # the exported symbols here. This prevents 'log enable --stack ...' # from working on some systems but limits the liblldb size. - MESSAGE("-- Symbols (liblldb): only exporting liblldb.exports symbols") + MESSAGE("-- Symbols (liblldb): exporting all symbols from the lldb namespace") add_llvm_symbol_exports(liblldb ${CMAKE_CURRENT_SOURCE_DIR}/liblldb.exports) else() # Don't use an explicit export. Instead, tell the linker to # export all symbols. - MESSAGE("-- Symbols (liblldb): exporting all symbols") - # Darwin linker doesn't need this extra step. - if (NOT CMAKE_SYSTEM_NAME MATCHES "Darwin") - lldb_append_link_flags(liblldb "-Wl,--export-dynamic") - endif() + MESSAGE("-- Symbols (liblldb): exporting all symbols from the lldb and lldb_private namespaces") + add_llvm_symbol_exports(liblldb ${CMAKE_CURRENT_SOURCE_DIR}/liblldb-private.exports) endif() endif() Index: lldb/trunk/source/API/liblldb-private.exports =================================================================== --- lldb/trunk/source/API/liblldb-private.exports +++ lldb/trunk/source/API/liblldb-private.exports @@ -0,0 +1,6 @@ +_ZN4lldb* +_ZNK4lldb* +_ZN12lldb_private* +_ZNK12lldb_private* +init_lld* +PyInit__lldb*
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits