Commit 7468a54
committed
Make the emscripten build a bit configurable
This changeset introduces two environment variables:
* `RUBY_WASM_EMCC_LDFLAGS` allows to specify additional options to
`emcc` for linking.
* `RUBY_WASM_ADDITIONAL_EXTS` allows to specify default exts to be
compiled in addition to `RubyWasm::Packager::ALL_DEFAULT_EXTS`.
This should allow for experimental linking with xterm-pty.
```
RUBY_WASM_ADDITIONAL_EXTS=io/console,io/wait RUBY_WASM_EMCC_LDFLAGS="-sASYNCIFY --js-library /home/mame/work/xterm-pty/emscripten-pty.js" rake npm:ruby-head-wasm-emscripten:build
```1 parent c781b6c commit 7468a54
2 files changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
301 | 305 | | |
302 | 306 | | |
303 | 307 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
159 | 163 | | |
160 | 164 | | |
161 | 165 | | |
| |||
0 commit comments