File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -241,19 +241,19 @@ function(add_properties_for_swift_modules target reldir)
241
241
if (SWIFT_BUILD_SWIFT_SYNTAX)
242
242
if (CMAKE_SYSTEM_NAME MATCHES "Darwin" )
243
243
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 " )
245
245
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 " )
247
247
if (SWIFT_ALLOW_LINKING_SWIFT_CONTENT_IN_DARWIN_TOOLCHAIN)
248
248
get_filename_component (TOOLCHAIN_BIN_DIR ${CMAKE_Swift_COMPILER} DIRECTORY )
249
249
get_filename_component (TOOLCHAIN_LIB_DIR "${TOOLCHAIN_BIN_DIR} /../lib/swift/macosx" ABSOLUTE )
250
250
target_link_directories (${target} BEFORE PUBLIC ${TOOLCHAIN_LIB_DIR} )
251
251
endif ()
252
252
elseif (CMAKE_SYSTEM_NAME MATCHES "Linux|Android|OpenBSD|FreeBSD" )
253
253
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 " )
255
255
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 " )
257
257
endif ()
258
258
endif ()
259
259
endif ()
You can’t perform that action at this time.
0 commit comments