File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
tools/SourceKit/cmake/modules Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -912,9 +912,9 @@ function(add_swift_host_tool executable)
912
912
endif()
913
913
914
914
if(SWIFT_SWIFT_PARSER)
915
- set_property(
916
- TARGET ${executable}
917
- APPEND PROPERTY INSTALL_RPATH " @executable_path/../lib ")
915
+ set_property(
916
+ TARGET ${executable}
917
+ APPEND PROPERTY INSTALL_RPATH " @executable_path/../lib ")
918
918
endif()
919
919
920
920
if(ASHT_THINLTO_LD64_ADD_FLTO_CODEGEN_ONLY)
Original file line number Diff line number Diff line change @@ -430,6 +430,10 @@ macro(add_sourcekit_framework name)
430
430
LIBRARY_DIR ${SOURCEKIT_LIBRARY_OUTPUT_INTDIR} )
431
431
set (RPATH_LIST )
432
432
add_sourcekit_swift_runtime_link_flags (${name} "${SOURCEKIT_LIBRARY_OUTPUT_INTDIR} " ${SOURCEKITFW_HAS_SWIFT_MODULES} )
433
+ file (RELATIVE_PATH relative_lib_path
434
+ "${framework_location} /Versions/A" "${SOURCEKIT_LIBRARY_OUTPUT_INTDIR} " )
435
+ list (APPEND RPATH_LIST "@loader_path/${relative_lib_path} " )
436
+
433
437
set_target_properties (${name} PROPERTIES
434
438
BUILD_WITH_INSTALL_RPATH TRUE
435
439
FOLDER "SourceKit frameworks"
@@ -461,6 +465,10 @@ macro(add_sourcekit_framework name)
461
465
LIBRARY_DIR ${framework_location} )
462
466
set (RPATH_LIST )
463
467
add_sourcekit_swift_runtime_link_flags (${name} "${framework_location} " SOURCEKITFW_HAS_SWIFT_MODULES RPATH_LIST )
468
+ file (RELATIVE_PATH relative_lib_path
469
+ "${framework_location} " "${SOURCEKIT_LIBRARY_OUTPUT_INTDIR} " )
470
+ list (APPEND RPATH_LIST "@loader_path/${relative_lib_path} " )
471
+
464
472
set_target_properties (${name} PROPERTIES
465
473
BUILD_WITH_INSTALL_RPATH TRUE
466
474
FOLDER "SourceKit frameworks"
You can’t perform that action at this time.
0 commit comments