Index: lldb/trunk/lldb.xcodeproj/project.pbxproj =================================================================== --- lldb/trunk/lldb.xcodeproj/project.pbxproj +++ lldb/trunk/lldb.xcodeproj/project.pbxproj @@ -7257,7 +7257,7 @@ CURRENT_PROJECT_VERSION = 350.99.0; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 350.99.0; - EXPORTED_SYMBOLS_FILE = "resources/lldb-framework-exports"; + EXPORTED_SYMBOLS_FILE = "source/API/liblldb.xcode.exports"; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks\"", @@ -7330,7 +7330,7 @@ DEAD_CODE_STRIPPING = YES; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 350.99.0; - EXPORTED_SYMBOLS_FILE = "resources/lldb-framework-exports"; + EXPORTED_SYMBOLS_FILE = "source/API/liblldb.xcode.exports"; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks\"", @@ -7720,7 +7720,7 @@ DEAD_CODE_STRIPPING = YES; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 350.99.0; - EXPORTED_SYMBOLS_FILE = "resources/lldb-framework-exports"; + EXPORTED_SYMBOLS_FILE = "source/API/liblldb.xcode.exports"; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks\"", @@ -8007,7 +8007,7 @@ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "-"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = ""; DEAD_CODE_STRIPPING = YES; - EXPORTED_SYMBOLS_FILE = "tools/lldb-server/exports"; + EXPORTED_SYMBOLS_FILE = "tools/lldb-server/lldb-server.exports"; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks\"", @@ -8080,7 +8080,7 @@ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "-"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = ""; DEAD_CODE_STRIPPING = YES; - EXPORTED_SYMBOLS_FILE = "tools/lldb-server/exports"; + EXPORTED_SYMBOLS_FILE = "tools/lldb-server/lldb-server.exports"; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks\"", @@ -8150,7 +8150,7 @@ buildSettings = { COPY_PHASE_STRIP = YES; DEAD_CODE_STRIPPING = YES; - EXPORTED_SYMBOLS_FILE = "tools/lldb-server/exports"; + EXPORTED_SYMBOLS_FILE = "tools/lldb-server/lldb-server.exports"; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks\"", @@ -8430,7 +8430,7 @@ CURRENT_PROJECT_VERSION = 350.99.0; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 350.99.0; - EXPORTED_SYMBOLS_FILE = "resources/lldb-framework-exports"; + EXPORTED_SYMBOLS_FILE = "source/API/liblldb.xcode.exports"; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks\"", @@ -8556,7 +8556,7 @@ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "-"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = ""; DEAD_CODE_STRIPPING = YES; - EXPORTED_SYMBOLS_FILE = "tools/lldb-server/exports"; + EXPORTED_SYMBOLS_FILE = "tools/lldb-server/lldb-server.exports"; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks\"", @@ -8720,7 +8720,7 @@ CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - EXPORTED_SYMBOLS_FILE = tools/argdumper/exports; + EXPORTED_SYMBOLS_FILE = tools/argdumper/argdumper.exports; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks\"", @@ -8787,7 +8787,7 @@ CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - EXPORTED_SYMBOLS_FILE = tools/argdumper/exports; + EXPORTED_SYMBOLS_FILE = tools/argdumper/argdumper.exports; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks\"", @@ -8856,7 +8856,7 @@ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; - EXPORTED_SYMBOLS_FILE = tools/argdumper/exports; + EXPORTED_SYMBOLS_FILE = tools/argdumper/argdumper.exports; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks\"", @@ -8921,7 +8921,7 @@ COPY_PHASE_STRIP = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; - EXPORTED_SYMBOLS_FILE = tools/argdumper/exports; + EXPORTED_SYMBOLS_FILE = tools/argdumper/argdumper.exports; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks\"", Index: lldb/trunk/resources/lldb-framework-exports =================================================================== --- lldb/trunk/resources/lldb-framework-exports +++ lldb/trunk/resources/lldb-framework-exports @@ -1,3 +0,0 @@ -__ZN4lldb* -__ZNK4lldb* -_init_lld* Index: lldb/trunk/source/API/CMakeLists.txt =================================================================== --- lldb/trunk/source/API/CMakeLists.txt +++ lldb/trunk/source/API/CMakeLists.txt @@ -82,6 +82,10 @@ VERSION ${LLDB_VERSION} ) +if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows") + add_llvm_symbol_exports(liblldb ${CMAKE_CURRENT_SOURCE_DIR}/liblldb.exports) +endif() + if ( CMAKE_SYSTEM_NAME MATCHES "Windows" ) # Only MSVC has the ABI compatibility problem and avoids using FindPythonLibs, # so only it needs to explicitly link against ${PYTHON_LIBRARY} Index: lldb/trunk/source/API/liblldb.exports =================================================================== --- lldb/trunk/source/API/liblldb.exports +++ lldb/trunk/source/API/liblldb.exports @@ -0,0 +1,3 @@ +_ZN4lldb* +_ZNK4lldb* +init_lld* Index: lldb/trunk/source/API/liblldb.xcode.exports =================================================================== --- lldb/trunk/source/API/liblldb.xcode.exports +++ lldb/trunk/source/API/liblldb.xcode.exports @@ -0,0 +1,3 @@ +__ZN4lldb* +__ZNK4lldb* +_init_lld*