Skip to content

Commit

Permalink
Merge pull request #155 from nrabinowitz/fix-browser-build
Browse files Browse the repository at this point in the history
Fix build script for browser output
  • Loading branch information
nrabinowitz authored Aug 23, 2022
2 parents 7195344 + d7c526e commit f75ead2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/update-emscripten.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ emcc -O3 -I ../include *.c -DH3_HAVE_VLA --memory-init-file 0 \
-s EXPORTED_FUNCTIONS=$bound_functions \
-s EXTRA_EXPORTED_RUNTIME_METHODS='["cwrap", "getValue", "setValue"]' \
"$@"
cat ../../../../build/pre.js *.js > ../../../../out/libh3.js

for file in *.js ; do
cat ../../../../build/pre.js "$file" > ../../../../out/"$file"
done

popd
popd

0 comments on commit f75ead2

Please sign in to comment.