Skip to content

Conversation

@alexcrichton
Copy link
Member

Deduplicate host panicking shim definitions with the wasm definitions.

@alexcrichton alexcrichton requested a review from dicej November 25, 2025 05:09
Deduplicate host panicking shim definitions with the wasm definitions.
@alexcrichton alexcrichton force-pushed the deduplicate-extern-definitions branch from f009ee0 to a765517 Compare November 25, 2025 05:10
/// This automatically imports when on wasm targets and then defines a dummy
/// panicking shim for native targets to support native compilation but fail at
/// runtime.
macro_rules! extern_wasm {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might want to move this to the crate root and make it public some day since it's generally useful.

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed yeah, it'd be useful even for the generate! macro to use this I think

@alexcrichton alexcrichton added this pull request to the merge queue Nov 25, 2025
github-merge-queue bot pushed a commit that referenced this pull request Nov 25, 2025
Deduplicate host panicking shim definitions with the wasm definitions.
Merged via the queue into bytecodealliance:main with commit 355ab39 Nov 25, 2025
22 checks passed
@alexcrichton alexcrichton deleted the deduplicate-extern-definitions branch November 25, 2025 15:49
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.

2 participants