[Lldb-commits] [lldb] bc3e317 - [lldb] Adjust install_name of ScriptInterpreterPython dylib (#229234)

via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 7 12:50:13 PDT 2026


Author: Alex Langford
Date: 2026-10-07T12:50:04-07:00
New Revision: bc3e317b47956185249d19bd8ea8ca54f9cf42e0

URL: https://github.com/llvm/llvm-project/commit/bc3e317b47956185249d19bd8ea8ca54f9cf42e0
DIFF: https://github.com/llvm/llvm-project/commit/bc3e317b47956185249d19bd8ea8ca54f9cf42e0.diff

LOG: [lldb] Adjust install_name of ScriptInterpreterPython dylib (#229234)

The dylib needs needs to be relative to the Contents directory of Xcode.

Added: 
    

Modified: 
    lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt b/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt
index 20618f15569e0..f8603a9e5fe4e 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt
@@ -63,6 +63,9 @@ if (LLDB_ENABLE_DYNAMIC_SCRIPTINTERPRETERS)
   if (APPLE)
     target_link_options(lldbPluginScriptInterpreterPython PRIVATE
       "LINKER:-undefined,dynamic_lookup")
+    set_target_properties(lldbPluginScriptInterpreterPython PROPERTIES
+      INSTALL_NAME_DIR "@rpath/SharedFrameworks/LLDB.framework/Versions/A"
+    )
   elseif (UNIX)
     target_link_options(lldbPluginScriptInterpreterPython PRIVATE
       "LINKER:--unresolved-symbols=ignore-all")


        


More information about the lldb-commits mailing list