Skip to content

Commit

Permalink
Modify awk filter to avoid also globalized contants
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi authored and Mytherin committed Jan 18, 2024
1 parent f25219d commit 13e7f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/wasm_build_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ emmake make \

npm install -g js-beautify
js-beautify ${BUILD_DIR}/duckdb_wasm.js > ${BUILD_DIR}/beauty.js
awk '!(/var .*wasmExports\[/) || /var _duckdb_web/ || /var _main/ || /var _malloc/ || /var _free/ || /stack/' ${BUILD_DIR}/beauty.js > ${BUILD_DIR}/duckdb_wasm.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/' ${BUILD_DIR}/beauty.js > ${BUILD_DIR}/duckdb_wasm.js

cp ${BUILD_DIR}/duckdb_wasm.wasm ${DUCKDB_LIB_DIR}/duckdb${SUFFIX}.wasm
sed \
Expand Down

0 comments on commit 13e7f43

Please sign in to comment.