better getInstallPath alternative
This commit is contained in:
parent
3472e60fbe
commit
74c1b9fb6e
1 changed files with 1 additions and 4 deletions
|
|
@ -720,12 +720,9 @@ fn addExamples(
|
||||||
});
|
});
|
||||||
b.getInstallStep().dependOn(emcc_step);
|
b.getInstallStep().dependOn(emcc_step);
|
||||||
|
|
||||||
const install_file = b.addInstallFile(.{ .cwd_relative = b.fmt("{s}/{s}/{s}.html", .{ module, filename, wasm.name }) }, "web");
|
|
||||||
b.getInstallStep().dependOn(&install_file.step);
|
|
||||||
|
|
||||||
const emrun_step = emsdk.emrunStep(
|
const emrun_step = emsdk.emrunStep(
|
||||||
b,
|
b,
|
||||||
install_file.source,
|
b.graph.path(.install_prefix, b.fmt("{s}/{s}.html", .{ filename, wasm.name })),
|
||||||
&.{},
|
&.{},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue