Skip to content
New issue

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

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

Already on GitHub? # to your account

[wasm] Gate atomic write option usages behind platform check #5198

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kateinoigakukun
Copy link
Member

Data.WritingOptions.atomic is now unavailable on WASI swiftlang/swift-foundation#992, so we need to gate them behind platform checks

@kateinoigakukun
Copy link
Member Author

@swift-ci test

@kkebo
Copy link
Contributor

kkebo commented Mar 31, 2025

I've forgotten to change swift-corelibs-foundation. Thank you!

Copy link
Contributor

@parkera parkera left a comment

Choose a reason for hiding this comment

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

Are people using the NSData class on WASI, instead of the Data struct?

@kateinoigakukun
Copy link
Member Author

Yes, there are still certain amounts of existing code using that running on the platform.

@kateinoigakukun
Copy link
Member Author

@swift-ci test Windows

@parkera
Copy link
Contributor

parkera commented Apr 1, 2025

I have the same general concern here, that we're simply suppressing the error instead of doing something to tell the developer it won't work. I wonder if it would be better to make the whole method unavailable.

@kateinoigakukun kateinoigakukun force-pushed the pr-6283b78c604f8c9f51b3856f310d11f04fc92b3b branch from ac84026 to 37f6d25 Compare April 3, 2025 06:42
@kateinoigakukun
Copy link
Member Author

@parkera Good point. I think it makes sense to make them unavailable on WASI.

@kateinoigakukun
Copy link
Member Author

@swift-ci test

@kateinoigakukun
Copy link
Member Author

@swift-ci test Windows

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants