Skip to content

Commit 3c45753

Browse files
committed
[emscripten] Use $EMCC env variable for javascriptify step.
This allows the emscripten compiler to be found even if it's not in $PATH.
1 parent e0109b3 commit 3c45753

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

engine/emscripten-javascriptify.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ for lib in $@ ; do
2323
libs+=\ --js-library\ "${lib}"
2424
done
2525

26+
EMCC=${EMCC:-emcc}
2627

27-
emcc -O2 -g ${CFLAGS} \
28+
${EMCC} -O2 -g ${CFLAGS} \
2829
"${input}" \
2930
-o "${output}" \
3031
-s EXPORTED_FUNCTIONS=@"${exports}" \

0 commit comments

Comments
 (0)