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 @@ -240,19 +240,19 @@ function(add_properties_for_swift_modules target reldir)
240
240
if (SWIFT_BUILD_SWIFT_SYNTAX )
241
241
if (CMAKE_SYSTEM_NAME MATCHES "Darwin" )
242
242
set_property (TARGET ${target}
243
- APPEND PROPERTY BUILD_RPATH "@loader_path/${build_reldir} lib/swift/host" )
243
+ APPEND PROPERTY BUILD_RPATH "@loader_path/${build_reldir} lib/swift/host/compiler " )
244
244
set_property (TARGET ${target}
245
- APPEND PROPERTY INSTALL_RPATH "@loader_path/${reldir} lib/swift/host" )
245
+ APPEND PROPERTY INSTALL_RPATH "@loader_path/${reldir} lib/swift/host/compiler " )
246
246
if (SWIFT_ALLOW_LINKING_SWIFT_CONTENT_IN_DARWIN_TOOLCHAIN )
247
247
get_filename_component (TOOLCHAIN_BIN_DIR ${CMAKE_Swift_COMPILER} DIRECTORY )
248
248
get_filename_component (TOOLCHAIN_LIB_DIR "${TOOLCHAIN_BIN_DIR} /../lib/swift/macosx" ABSOLUTE )
249
249
target_link_directories (${target} BEFORE PUBLIC ${TOOLCHAIN_LIB_DIR} )
250
250
endif ()
251
251
elseif (CMAKE_SYSTEM_NAME MATCHES "Linux|Android|OpenBSD|FreeBSD" )
252
252
set_property (TARGET ${target}
253
- APPEND PROPERTY BUILD_RPATH "$ORIGIN/${build_reldir} lib/swift/host" )
253
+ APPEND PROPERTY BUILD_RPATH "$ORIGIN/${build_reldir} lib/swift/host/compiler " )
254
254
set_property (TARGET ${target}
255
- APPEND PROPERTY INSTALL_RPATH "$ORIGIN/${reldir} lib/swift/host" )
255
+ APPEND PROPERTY INSTALL_RPATH "$ORIGIN/${reldir} lib/swift/host/compiler " )
256
256
endif ()
257
257
endif ()
258
258
endif ()
You can’t perform that action at this time.
0 commit comments