Skip to content

Commit f15cfa7

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 b6fd387 commit f15cfa7

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
@@ -217,7 +217,7 @@ function(add_properties_for_swift_modules target reldir)
217217
target_link_libraries(${target} PRIVATE swiftCore-linux-${arch})
218218
string(TOLOWER ${CMAKE_SYSTEM_NAME} platform)
219219
set(SWIFT_BUILD_RPATH "${LLDB_SWIFT_LIBS}/${platform}")
220-
set(SWIFT_INSTALL_RPATH "$ORIGIN/swift/${platform}")
220+
set(SWIFT_INSTALL_RPATH "$ORIGIN/${reldir}lib/swift/${platform}")
221221
endif()
222222

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

0 commit comments

Comments
 (0)