Skip to content

Commit

Permalink
bump stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Aug 30, 2024
1 parent 8a99004 commit 1861eb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/wasm_build_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ npm install -g js-beautify
js-beautify ${BUILD_DIR}/duckdb_wasm.js > ${BUILD_DIR}/beauty.js
awk '!(/var .*wasmExports\[/ || /var [_a-z0-9A-Z]+ = Module\[\"[_a-z0-9A-Z]+\"\] = [0-9]+;/) || /var _duckdb_web/ || /var _main/ || /var _malloc/ || /var _free/ || /var stack/ || /var ___dl_seterr/ || /var __em/ || /var _em/ || /var _pthread/' ${BUILD_DIR}/beauty.js > ${BUILD_DIR}/duckdb_wasm.js
cp ${BUILD_DIR}/duckdb_wasm.wasm ${BUILD_DIR}/duckdb_wasm_origin.wasm
npm install -g webassembly-binary-toolkit
wasm2wat --enable-all ${BUILD_DIR}/duckdb_wasm.wasm > ${BUILD_DIR}/duckdb_wat.wat
grep -v "export.*Executor" ${BUILD_DIR}/duckdb_wat.wat > ${BUILD_DIR}/duckdb_wat_filtered.wat
wat2wasm --enable-all ${BUILD_DIR}/duckdb_wat_filtered.wat -o ${BUILD_DIR}/duckdb_wasm.wasm
Expand Down

0 comments on commit 1861eb2

Please sign in to comment.