Skip to content
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