Skip to content

Commit e1da691

Browse files
author
rodolpheh
committed
Update README
1 parent 125fa23 commit e1da691

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Add zemscripten's "root" module to your wasm compile target., then create an `em
2727
wasm.root_module.addImport("zemscripten", zemscripten.module("root"));
2828
2929
const emcc_flags = @import("zemscripten").emccDefaultFlags(b.allocator, optimize);
30-
30+
3131
var emcc_settings = @import("zemscripten").emccDefaultSettings(b.allocator, .{
3232
.optimize = optimize,
3333
});
@@ -65,7 +65,7 @@ To use a custom html file emccStep() accepts a shell_file_path option:
6565
.embed_paths = &.{},
6666
.preload_paths = &.{},
6767
.install_dir = .{ .custom = "web" },
68-
.shell_file_path = "path/to/file"
68+
.shell_file_path = b.path("path/to/file"),
6969
},
7070
);
7171
```
@@ -103,4 +103,3 @@ You can also define a run step that invokes `emrun`. This will serve the html lo
103103
b.step("emrun", "Build and open the web app locally using emrun").dependOn(emrun_step);
104104
```
105105
See the [emrun documentation](https://emscripten.org/docs/compiling/Running-html-files-with-emrun.html) for the difference args that can be used.
106-

0 commit comments

Comments
 (0)