Skip to content

Commit 8546e2a

Browse files
authored
Merge pull request #3282 from apple/rdar83123556
Rdar83123556
2 parents 6cbcb56 + c481382 commit 8546e2a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

lldb/source/API/CMakeLists.txt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,20 @@ if(LLDB_ENABLE_PYTHON AND (BUILD_SHARED_LIBS OR LLVM_LINK_LLVM_DYLIB) AND UNIX A
134134
endif()
135135

136136
if(Python3_RPATH)
137-
set_property(TARGET liblldb APPEND PROPERTY INSTALL_RPATH "${Python3_RPATH}")
138-
set_property(TARGET liblldb APPEND PROPERTY BUILD_RPATH "${Python3_RPATH}")
137+
lldb_setup_rpaths(liblldb
138+
BUILD_RPATH
139+
"${Python3_RPATH}"
140+
INSTALL_RPATH
141+
"@loader_path/../../../../../../../../Library/Frameworks/"
142+
"@loader_path/../../../../../Developer/Library/Frameworks/"
143+
"@loader_path/../../../../Developer/Library/Frameworks/"
144+
"@loader_path/../../../../Frameworks"
145+
"@loader_path/../../../"
146+
"/Library/Developer/CommandLineTools/Library/Frameworks"
147+
"/Applications/Xcode.app/Contents/Developer/Library/Frameworks/"
148+
)
139149
endif()
140150

141-
142151
if(LLDB_ENABLE_PYTHON)
143152
add_dependencies(liblldb swig_wrapper_python)
144153

0 commit comments

Comments
 (0)