Skip to content

Conversation

@MaxDesiatov
Copy link
Contributor

We have both WASI-libc and pthread available for Wasm, which should be enough for making this type available.

We have both WASI-libc and pthread available for Wasm, which should be enough for making this type available.
@MaxDesiatov MaxDesiatov requested a review from a team as a code owner December 4, 2025 15:31
@MaxDesiatov MaxDesiatov added Concurrencу Area → standard library: The `Concurrency` module under the standard library umbrella embedded Embedded Swift WebAssembly Platform: WebAssembly labels Dec 4, 2025
@MaxDesiatov MaxDesiatov added the WASI WebAssembly System Interface support label Dec 4, 2025
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

// RUN: %target-run-simple-swift(-enable-experimental-feature Embedded -parse-as-library -wmo) | %FileCheck %s

// REQUIRES: executable_test
// REQUIRES: OS=wasip1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mutex on Wasm doesn't rely on pthread mutex API, so in theory we don't need this requirement

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it not require WASI-libc at all?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't AFAIK

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, print requires wasip1, so I guess we'll have to revert to using it as a requirement

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov MaxDesiatov enabled auto-merge December 5, 2025 11:51
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov MaxDesiatov disabled auto-merge December 5, 2025 15:08
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test linux

@MaxDesiatov MaxDesiatov enabled auto-merge December 6, 2025 09:56
@MaxDesiatov MaxDesiatov merged commit fb0ec64 into swiftlang:main Dec 6, 2025
3 checks passed
@MaxDesiatov MaxDesiatov deleted the embedded-wasm-mutex branch December 6, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Concurrencу Area → standard library: The `Concurrency` module under the standard library umbrella embedded Embedded Swift WASI WebAssembly System Interface support WebAssembly Platform: WebAssembly

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants