Skip to content

Commit

Permalink
Disable emscripten PTHREAD usage, so SharedArrayBuffer is no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
vvollers authored and fiatjaf committed Nov 1, 2024
1 parent 578c95c commit 0449e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jq/Makefile: jq/configure

jq/jq: jq/Makefile pre.js post.js extern-post.js
rm -f $@ # needed for emcc to replace existing file
cd jq && env CCFLAGS=-O2 emmake make V=1 VERBOSE=1 LDFLAGS="-all-static -s EXPORTED_RUNTIME_METHODS='[\"callMain\"]' -s ALLOW_MEMORY_GROWTH=1 -s MODULARIZE=1 -s EXPORT_NAME=jq -s WASM=1 --pre-js ../pre.js --post-js ../post.js --extern-post-js ../extern-post.js" CCFLAGS=-O2 -j4
cd jq && env CCFLAGS=-O2 emmake make V=1 VERBOSE=1 LDFLAGS="-all-static -s EXPORTED_RUNTIME_METHODS='[\"callMain\"]' -s ALLOW_MEMORY_GROWTH=1 -s MODULARIZE=1 -s USE_PTHREADS=0 -s EXPORT_NAME=jq -s WASM=1 --pre-js ../pre.js --post-js ../post.js --extern-post-js ../extern-post.js" CCFLAGS=-O2 -j4

jq.js: jq/jq jq.wasm
cp -f jq/jq ./jq.js
Expand Down

0 comments on commit 0449e85

Please sign in to comment.