File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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```
105105See the [ emrun documentation] ( https://emscripten.org/docs/compiling/Running-html-files-with-emrun.html ) for the difference args that can be used.
106-
You can’t perform that action at this time.
0 commit comments