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

WITOverlayGenerator: Support Embedded target build #103

Merged
merged 5 commits into from
Jul 17, 2024

Conversation

kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Jul 17, 2024

This change makes overlay Swift code generated by WITOverlayGenerator to be compatible with Embedded wasm32-unknown-none-wasm target by following changes:

  1. Avoid the use of malloc
  2. Guard out cabi_realloc definition not to implicitly depend on realloc. Embedded target users need to define cabi_realloc with their chosen allocator.

Also adjusted test suites to run e2e tests for Embedded target too.

@kateinoigakukun kateinoigakukun force-pushed the katei/embedded-wit-overlay-gen branch from 51e63f9 to ba19173 Compare July 17, 2024 01:05
@kateinoigakukun kateinoigakukun merged commit 5c33997 into main Jul 17, 2024
8 checks passed
@kateinoigakukun kateinoigakukun deleted the katei/embedded-wit-overlay-gen branch July 17, 2024 01:27
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.

1 participant