Skip to content

Don't force link cabi_realloc on non-Wasm builds. - #1697

Merged
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
QuantumSegfault:dont-link-cabi-realloc-native
Aug 25, 2026
Merged

Don't force link cabi_realloc on non-Wasm builds.#1697
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
QuantumSegfault:dont-link-cabi-realloc-native

Conversation

@QuantumSegfault

Copy link
Copy Markdown
Contributor

Fixes an issue introduced with #1663 where building libraries containing wit-bindgen produced bindings for native (non-Wasm) platforms would error out on link due to missing cabi_realloc.

This restores the original gate of the force-link behind target_family = "wasm"

@QuantumSegfault

Copy link
Copy Markdown
Contributor Author

@alexcrichton

@alexcrichton
alexcrichton added this pull request to the merge queue Aug 25, 2026
Merged via the queue into bytecodealliance:main with commit 8cde5ce Aug 25, 2026
32 checks passed
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