From f15cfa7b86e15ef4af95715e22843cc895b7a983 Mon Sep 17 00:00:00 2001 From: Finagolfin Date: Wed, 30 Aug 2023 19:14:12 +0530 Subject: [PATCH] [lldb][cmake] Fix relative path used for lldb executables I had this looking directly in `./swift//` before, but now that an installed lldb executable also links against Swift libraries, this needs to be the more general `../lib/swift//`. --- lldb/cmake/modules/AddLLDB.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/cmake/modules/AddLLDB.cmake b/lldb/cmake/modules/AddLLDB.cmake index ff9d0251479c9..fa9846d5749d4 100644 --- a/lldb/cmake/modules/AddLLDB.cmake +++ b/lldb/cmake/modules/AddLLDB.cmake @@ -217,7 +217,7 @@ function(add_properties_for_swift_modules target reldir) target_link_libraries(${target} PRIVATE swiftCore-linux-${arch}) string(TOLOWER ${CMAKE_SYSTEM_NAME} platform) set(SWIFT_BUILD_RPATH "${LLDB_SWIFT_LIBS}/${platform}") - set(SWIFT_INSTALL_RPATH "$ORIGIN/swift/${platform}") + set(SWIFT_INSTALL_RPATH "$ORIGIN/${reldir}lib/swift/${platform}") endif() set_property(TARGET ${target} APPEND PROPERTY BUILD_RPATH "${SWIFT_BUILD_RPATH}")