Skip to content

Commit f2e39cb

Browse files
committed
Simplify the symlink pointing to a directory instead
1 parent d022f27 commit f2e39cb

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Sources/SwiftSDKGenerator/SwiftSDKRecipes/WebAssemblyRecipe.swift

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,10 @@ package struct WebAssemblyRecipe: SwiftSDKRecipe {
197197

198198
// Embedded Swift looks up clang compiler-rt in a different path.
199199
let embeddedCompilerRTPath = pathsConfiguration.toolchainDirPath.appending(
200-
"usr/lib/swift/clang/lib/wasm32-unknown-wasip1"
200+
"usr/lib/swift/clang/lib/wasip1"
201201
)
202202

203-
try await generator.createDirectoryIfNeeded(at: embeddedCompilerRTPath)
204-
try await generator.createSymlink(
205-
at: embeddedCompilerRTPath.appending("libclang_rt.builtins.a"),
206-
pointingTo: "../../../../swift_static/clang/lib/wasi/libclang_rt.builtins-wasm32.a"
207-
)
203+
try await generator.createSymlink(at: embeddedCompilerRTPath, pointingTo: "wasi")
208204

209205
// Copy the WASI sysroot into the SDK bundle.
210206
let sdkDirPath = pathsConfiguration.swiftSDKRootPath.appending("WASI.sdk")

0 commit comments

Comments
 (0)