diff options
author | Jun Aruga <[email protected]> | 2022-11-10 13:24:27 +0100 |
---|---|---|
committer | Yuta Saito <[email protected]> | 2022-11-11 07:57:25 +0900 |
commit | 4c554096bfc08939e9eb1fb1773514b62b8b95b5 (patch) | |
tree | 3a43f5cff9021d2e827734028561cefa54aeb5f8 /test/ruby/test_regexp.rb | |
parent | 8fa83fa0b2031ad17f01b5a12b39599398dc6da6 (diff) |
wasm/README.md: Add a note about the Ruby built for wasm. [ci skip]
The Ruby built for wasm cannot be execute without a WebAssembly runtime.
```
$ 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
```
Because the Ruby's file type is different from the one built normally, that is
the `/usr/local/ruby-3.2.0-preview2/bin/ruby` below.
```
$ file ruby-wasm32-wasi/usr/local/bin/ruby
ruby-wasm32-wasi/usr/local/bin/ruby: WebAssembly (wasm) binary module version 0x1 (MVP)
$ file /usr/local/ruby-3.2.0-preview2/bin/ruby
/usr/local/ruby-3.2.0-preview2/bin/ruby: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=a37822085e285c0971159982e7642dda88cea606, for GNU/Linux 3.2.0, with debug_info, not stripped
```
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6707
Diffstat (limited to 'test/ruby/test_regexp.rb')
0 files changed, 0 insertions, 0 deletions