Skip to content

Commit 6f572b8

Browse files
committed
[lldb] Update for _CompilerSwiftSyntax libraries
swift-syntax libraries for compilers are now in 'lib/swift/host/compiler'
1 parent 897d03a commit 6f572b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lldb/cmake/modules/AddLLDB.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,19 +241,19 @@ function(add_properties_for_swift_modules target reldir)
241241
if (SWIFT_BUILD_SWIFT_SYNTAX)
242242
if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
243243
set_property(TARGET ${target}
244-
APPEND PROPERTY BUILD_RPATH "@loader_path/${build_reldir}lib/swift/host")
244+
APPEND PROPERTY BUILD_RPATH "@loader_path/${build_reldir}lib/swift/host/compiler")
245245
set_property(TARGET ${target}
246-
APPEND PROPERTY INSTALL_RPATH "@loader_path/${reldir}lib/swift/host")
246+
APPEND PROPERTY INSTALL_RPATH "@loader_path/${reldir}lib/swift/host/compiler")
247247
if(SWIFT_ALLOW_LINKING_SWIFT_CONTENT_IN_DARWIN_TOOLCHAIN)
248248
get_filename_component(TOOLCHAIN_BIN_DIR ${CMAKE_Swift_COMPILER} DIRECTORY)
249249
get_filename_component(TOOLCHAIN_LIB_DIR "${TOOLCHAIN_BIN_DIR}/../lib/swift/macosx" ABSOLUTE)
250250
target_link_directories(${target} BEFORE PUBLIC ${TOOLCHAIN_LIB_DIR})
251251
endif()
252252
elseif (CMAKE_SYSTEM_NAME MATCHES "Linux|Android|OpenBSD|FreeBSD")
253253
set_property(TARGET ${target}
254-
APPEND PROPERTY BUILD_RPATH "$ORIGIN/${build_reldir}lib/swift/host")
254+
APPEND PROPERTY BUILD_RPATH "$ORIGIN/${build_reldir}lib/swift/host/compiler")
255255
set_property(TARGET ${target}
256-
APPEND PROPERTY INSTALL_RPATH "$ORIGIN/${reldir}lib/swift/host")
256+
APPEND PROPERTY INSTALL_RPATH "$ORIGIN/${reldir}lib/swift/host/compiler")
257257
endif()
258258
endif()
259259
endif()

0 commit comments

Comments
 (0)