-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Embedded Synchronization: enable Mutex for Wasm
#85835
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
Conversation
We have both WASI-libc and pthread available for Wasm, which should be enough for making this type available.
|
@swift-ci smoke test |
|
@swift-ci smoke test |
|
@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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't AFAIK
There was a problem hiding this comment.
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
|
@swift-ci smoke test |
|
@swift-ci smoke test |
|
@swift-ci smoke test |
8bf23c1 to
d33191e
Compare
|
@swift-ci smoke test |
|
@swift-ci smoke test linux |
We have both WASI-libc and pthread available for Wasm, which should be enough for making this type available.