Skip to content

Commit f75ead2

Browse files
authored
Merge pull request #155 from nrabinowitz/fix-browser-build
Fix build script for browser output
2 parents 7195344 + d7c526e commit f75ead2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/update-emscripten.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ emcc -O3 -I ../include *.c -DH3_HAVE_VLA --memory-init-file 0 \
5555
-s EXPORTED_FUNCTIONS=$bound_functions \
5656
-s EXTRA_EXPORTED_RUNTIME_METHODS='["cwrap", "getValue", "setValue"]' \
5757
"$@"
58-
cat ../../../../build/pre.js *.js > ../../../../out/libh3.js
58+
59+
for file in *.js ; do
60+
cat ../../../../build/pre.js "$file" > ../../../../out/"$file"
61+
done
62+
5963
popd
6064
popd

0 commit comments

Comments
 (0)