Skip to content

Commit 77dfffc

Browse files
committed
[CMake] Use an absolute path when adding Swift runtime paths.
The SourceKit version of these operations takes an absolute path, whereas the primary one takes a relative path. Fixes rdar://100976577
1 parent f9d7ac7 commit 77dfffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/SourceKit/cmake/modules/AddSwiftSourceKit.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ macro(add_sourcekit_executable name)
341341
endif()
342342

343343
set(RPATH_LIST)
344-
add_sourcekit_swift_runtime_link_flags(${name} "../../../.." ${SKEXEC_HAS_SWIFT_MODULES})
344+
add_sourcekit_swift_runtime_link_flags(${name} ${SOURCEKIT_LIBRARY_OUTPUT_INTDIR} ${SKEXEC_HAS_SWIFT_MODULES})
345345

346346
endmacro()
347347

0 commit comments

Comments
 (0)