Skip to content

Conversation

@MaxDesiatov
Copy link
Contributor

Cherry-pick of #1863.

Explanation: Currently, when building packages for WASI with Embedded Swift, libraries such as libswift_Concurrency.a and libswift_ConcurrencyDefaultExecutor.a are not discoverable and require passing -Xlinker <swift-sdk-path>/usr/lib/swift/embedded/wasm32-unknown-wasip1 option manually. This path can be inferred by the driver, which simplifies build invocations for users significantly, while the rest of linkage options (-lswift_Concurrency etc) can be specified in toolset files.
Scope: Limited to Embedded Swift for Wasm.
Risk: Low due to limited scope.
Testing: Added new automated test cases.
Issue: rdar://148820885
Reviewer: @kateinoigakukun

Currently, when building packages for WASI with Embedded Swift, libraries such as `libswift_Concurrency.a` and `libswift_ConcurrencyDefaultExecutor.a` are not discoverable and require passing `-Xlinker <swift-sdk-path>/usr/lib/swift/embedded/wasm32-unknown-wasip1` option manually. This path can be inferred by the driver, which simplifies build invocations for users significantly, while the rest of linkage options (`-lswift_Concurrency` etc) can be specified in toolset files.
@MaxDesiatov MaxDesiatov requested a review from a team as a code owner June 2, 2025 17:36
@MaxDesiatov MaxDesiatov added bug Something isn't working swift 6.2 labels Jun 2, 2025
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) June 2, 2025 17:58
@MaxDesiatov MaxDesiatov merged commit 813b39b into release/6.2 Jun 2, 2025
3 checks passed
@MaxDesiatov MaxDesiatov deleted the maxd/embedded-link-path-6.2 branch June 4, 2025 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working swift 6.2

4 participants