Skip to content

Add note about web builds compiling with emscripten #167

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions samples/12_c_extensions/01_basics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ DragonRuby ships with support for Android on arm32, arm64, x86, and x86-64. This
be overkill, but it allows for maximum hardware compatibility. You should plan to
compile for all four architectures too, but of course this is optional.

### Web

Web builds are automatically compiled with WASM using [emscripten](https://emscripten.org/). As long as emscripten can compile your C extension to WASM, your C extension will work as expected without needing to precompile any binaries.

To see the list of things to do to prepare your C code for emscripten compilation, check out this page: <https://emscripten.org/docs/porting/index.html#integrating-porting-index>

## Hello World

Expand Down