Skip to content

Commit 5444a68

Browse files
committed
[lldb][cmake] Fix relative path used for lldb executables
I had this looking directly in `./swift/<os>/` before, but now that an installed lldb executable also links against Swift libraries, this needs to be the more general `../lib/swift/<os>/`.
1 parent 2b18f0d commit 5444a68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/cmake/modules/AddLLDB.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function(add_properties_for_swift_modules target reldir)
195195
target_link_libraries(${target} PRIVATE swiftCore-linux-${arch})
196196
string(TOLOWER ${CMAKE_SYSTEM_NAME} platform)
197197
set(SWIFT_BUILD_RPATH "${LLDB_SWIFT_LIBS}/${platform}")
198-
set(SWIFT_INSTALL_RPATH "$ORIGIN/swift/${platform}")
198+
set(SWIFT_INSTALL_RPATH "$ORIGIN/${reldir}lib/swift/${platform}")
199199
endif()
200200

201201
set_property(TARGET ${target} APPEND PROPERTY BUILD_RPATH "${SWIFT_BUILD_RPATH}")

0 commit comments

Comments
 (0)