Skip to content

[6.2] Allow linking _Concurrency for WASI with Embedded Swift #1912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 2, 2025

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants