Skip to content

Conversation

@kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Nov 27, 2025

When generating @_extern(wasm) function declarations in the BridgeJS plugin, we now need to ensure that they are placed at the top level of the module, rather than nested within other declarations because of the restrictions of the main branch Swift compiler. Otherwise, we will get @_extern' can only be applied to globals errors with the latest main snapshot toolchains.

swiftlang/swift#85370

When generating `@_extern(wasm)` function declarations in the
BridgeJS plugin, we now need to ensure that they are placed at the
top level of the module, rather than nested within other declarations
because of the restrictions of the main branch Swift compiler.
@krodak krodak merged commit 8f31637 into main Nov 27, 2025
9 checks passed
@krodak krodak deleted the yt/extern-top-level-requirement branch November 27, 2025 10:25
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.

3 participants