summaryrefslogtreecommitdiff
path: root/wasm/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'wasm/README.md')
-rw-r--r--wasm/README.md13
1 files changed, 11 insertions, 2 deletions
diff --git a/wasm/README.md b/wasm/README.md
index 4269bc33cf..0f9ca1a3d5 100644
--- a/wasm/README.md
+++ b/wasm/README.md
@@ -7,8 +7,7 @@
- Ruby (the same version as the building target version) (baseruby)
- GNU make
- [WASI SDK](https://github.com/WebAssembly/wasi-sdk) 14.0 or later
-- [Binaryen](https://github.com/WebAssembly/binaryen) **version 91**
- - See also: https://github.com/WebAssembly/binaryen/issues/4401
+- [Binaryen](https://github.com/WebAssembly/binaryen) version 106 or later
- Linux or macOS build machine
### Steps
@@ -55,6 +54,16 @@ $ wasmtime ruby-wasm32-wasi/usr/local/bin/ruby --mapdir /::./ruby-wasm32-wasi/ -
wasm32-wasi
```
+Note: you cannot run the built ruby without a WebAssembly runtime, because of the difference of the binary file type.
+
+```
+$ ruby-wasm32-wasi/usr/local/bin/ruby -e 'puts "a"'
+bash: ruby-wasm32-wasi/usr/local/bin/ruby: cannot execute binary file: Exec format error
+
+$ file ruby-wasm32-wasi/usr/local/bin/ruby
+ruby-wasm32-wasi/usr/local/bin/ruby: WebAssembly (wasm) binary module version 0x1 (MVP)
+```
+
## Current Limitation
- No `Thread` support for now.