Skip to content

Commit 54de61c

Browse files
committed
Give user a default html file from emsdk
1 parent cbcddef commit 54de61c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.zig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ pub fn emrunPath(b: *std.Build) []const u8 {
3333
}) catch unreachable;
3434
}
3535

36+
pub fn htmlPath(b: *std.Build) []const u8 {
37+
return std.fs.path.join(b.allocator, &.{
38+
b.dependency("emsdk", .{}).path("").getPath(b),
39+
"upstream/emscripten/src/shell.html",
40+
}) catch unreachable;
41+
}
42+
3643
pub fn activateEmsdkStep(b: *std.Build) *std.Build.Step {
3744
const emsdk_script_path = std.fs.path.join(b.allocator, &.{
3845
b.dependency("emsdk", .{}).path("").getPath(b),

0 commit comments

Comments
 (0)