Skip to content

Commit 010759d

Browse files
committed
[CMake] Tweak path separators in new Swift runpaths
1 parent 55292e2 commit 010759d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/modules/AddPureSwift.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function(_set_pure_swift_link_flags name relpath_to_lib_dir)
7676
APPEND PROPERTY INSTALL_RPATH
7777
# At runtime, use swiftCore in the current just-built toolchain.
7878
# NOTE: This relies on the ABI being the same as the builder.
79-
"$ORIGIN/${relpath_to_lib_dir}/swift/${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR}"
79+
"$ORIGIN/${relpath_to_lib_dir}swift/${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR}"
8080
)
8181
# NOTE: At this point we don't have any pure swift executables/shared
8282
# libraries required for building runtime/stdlib. So we don't need to add
@@ -285,7 +285,7 @@ function(add_pure_swift_host_tool name)
285285
# Create the library.
286286
add_executable(${name} ${APSHT_SOURCES})
287287
_add_host_swift_compile_options(${name})
288-
_set_pure_swift_link_flags(${name} "../lib")
288+
_set_pure_swift_link_flags(${name} "../lib/")
289289

290290
if(SWIFT_HOST_VARIANT_SDK IN_LIST SWIFT_DARWIN_PLATFORMS)
291291
set_property(TARGET ${name}

0 commit comments

Comments
 (0)