File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Sources/SwiftSDKGenerator/SwiftSDKRecipes Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -195,15 +195,17 @@ package struct WebAssemblyRecipe: SwiftSDKRecipe {
195
195
try await generator. createSymlink ( at: autolinkExtractPath, pointingTo: " swift " )
196
196
}
197
197
198
+ // TODO: Remove this once we drop support for Swift 6.2
198
199
// Embedded Swift looks up clang compiler-rt in a different path.
199
200
let embeddedCompilerRTPath = pathsConfiguration. toolchainDirPath. appending (
200
201
" usr/lib/swift/clang/lib/wasip1 "
201
202
)
202
-
203
- try await generator. createSymlink (
204
- at: embeddedCompilerRTPath,
205
- pointingTo: " ../../../swift_static/clang/lib/wasi "
206
- )
203
+ if await !generator. doesFileExist ( at: embeddedCompilerRTPath) {
204
+ try await generator. createSymlink (
205
+ at: embeddedCompilerRTPath,
206
+ pointingTo: " ../../../swift_static/clang/lib/wasi "
207
+ )
208
+ }
207
209
208
210
// Copy the WASI sysroot into the SDK bundle.
209
211
let sdkDirPath = pathsConfiguration. swiftSDKRootPath. appending ( " WASI.sdk " )
You can’t perform that action at this time.
0 commit comments