remove emrun from emcc to avoid the game to keep calling stdio.html (#238)
* remove emrun from emcc to avoid the game to keep calling stdio.html * Remove formater * Add --emrun for examples and templates
This commit is contained in:
parent
3bf08a304c
commit
97cb212bf0
4 changed files with 3 additions and 1 deletions
|
|
@ -316,6 +316,7 @@ pub fn build(b: *std.Build) !void {
|
|||
// output file, so it also needs to be linked with emscripten.
|
||||
exe_lib.linkLibrary(raylib_artifact);
|
||||
const link_step = try emcc.linkWithEmscripten(b, &[_]*std.Build.Step.Compile{ exe_lib, raylib_artifact });
|
||||
link_step.addArg("--emrun");
|
||||
link_step.addArg("--embed-file");
|
||||
link_step.addArg("resources/");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue