Skip to content

Support AOT dynamic extension linking #425

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

Merged
merged 12 commits into from
Apr 21, 2024
Merged

Conversation

kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Apr 10, 2024

Changes

  • Add component-link step for RUBY_WASM_EXPERIMENTAL_DYNAMIC_LINKING=1 by using wit-component
    • This enables linking .so files at component-link time
    • The produced component binary uses WASI Preview2 ABI
  • Use --target-rbconfig to build extension library: https://bugs.ruby-lang.org/issues/20345

@kateinoigakukun kateinoigakukun changed the title Support dynamic extension libraries Support AOT dynamic extension libraries Apr 10, 2024
@kateinoigakukun kateinoigakukun changed the title Support AOT dynamic extension libraries Support AOT dynamic extension linking Apr 10, 2024
To avoid pack/unpack overhead, use magnus's TryConvert trait
implementation for bytes::Bytes.
To make it easier to remove the legacy one later
Because rake-compiler 1.5.0 does not support x64-mingw32 with recent
Ruby versions, and they use x64-mingw-ucrt instead.
@kateinoigakukun kateinoigakukun marked this pull request as ready for review April 21, 2024 06:28
@kateinoigakukun kateinoigakukun merged commit bed758a into main Apr 21, 2024
@kateinoigakukun kateinoigakukun deleted the katei/add-pic-support branch April 21, 2024 06:28
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