Reset options to 0 so can call main() multiple times in a row

This commit is contained in:
Robert Aboukhalil authored and Nico Williams committed 2023-07-19 13:07:46 -05:00
1 parent f1c49473a3
commit 4c25cf3f7c
2 files changed
+13

No files matched your search

+7
View File
@@ -66,6 +66,13 @@ cross-compilation environment. See also
["Cross compilation"](https://github.com/jqlang/jq/wiki/Cross-compilation) on
the wiki.
To compile jq to WebAssembly, install the [Emscripten SDK](https://emscripten.org/docs/getting_started/downloads.html), then:
git submodule update --init # if building from git to get oniguruma
autoreconf -i # if building from git
emconfigure ./configure --with-oniguruma=builtin --disable-maintainer-mode
emmake make EXEEXT=.js CFLAGS="-O2" LDFLAGS="-s EXPORTED_RUNTIME_METHODS=['callMain']"
# Community