Skip to content
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

[wasm] Add objc_retainAutoreleasedReturnValue definition #4895

Conversation

kateinoigakukun
Copy link
Member

The function is usually provided by libdispatch, but for platforms where libdispatch is unavailable at this moment, we need to provide it in CF as we do for BlocksRuntime.

@al45tair
Copy link
Contributor

al45tair commented Mar 1, 2024

I'm not hugely keen on propagating this hack into swift-corelibs-foundation or (worse) swift-foundation. We've known this was a problem since 2015, and nobody's done anything about it, presumably because "the workaround was good enough"; it needs to be fixed in the compiler.

@al45tair
Copy link
Contributor

al45tair commented Mar 1, 2024

I think the compiler change needed here is literally a three line fix (I'm just trying it now to see).

@al45tair
Copy link
Contributor

al45tair commented Mar 1, 2024

Hopefully apple/swift#72011 will fix this problem and then we won't need this (and can delete the corresponding code from swift-corelibs-libdispatch too).

@kateinoigakukun
Copy link
Member Author

kateinoigakukun commented Mar 2, 2024

This workaround is no longer necessary! Thank you @al45tair!

@kateinoigakukun kateinoigakukun deleted the pr-852554af0f93fae3e7d3564badd5bd918dfdf03a branch March 2, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants