Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 21a2ce9

Browse files
committed
[[ Emrun ]] Add --emrun flag to emscripten builds
The `--emrun` flag is only erquired when linking. It injects some code so that if requests come from localhost it will post stdout and stderr back to the requesting server. This will be used by our test suite and by our HTML5 deploy library.
1 parent 47df3a2 commit 21a2ce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/emscripten-javascriptify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
# Construct emcc command line
6666
# ---------------------------
6767

68-
command = emcc + optimisation_flags + cflags
68+
command = emcc + ["--emrun"] + optimisation_flags + cflags
6969

7070
for input in options['input']:
7171
command.append(input)

0 commit comments

Comments
 (0)