We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cac24b7 commit 125fa23Copy full SHA for 125fa23
build.zig
@@ -165,7 +165,7 @@ pub fn emccStep(
165
use_preload_plugins: bool = false,
166
embed_paths: ?[]const EmccFilePath = null,
167
preload_paths: ?[]const EmccFilePath = null,
168
- shell_file_path: ?[]const u8 = null,
+ shell_file_path: ?std.Build.LazyPath = null,
169
install_dir: std.Build.InstallDir,
170
},
171
) *std.Build.Step {
@@ -240,7 +240,9 @@ pub fn emccStep(
240
}
241
242
if (options.shell_file_path) |shell_file_path| {
243
- emcc.addArgs(&.{ "--shell-file", shell_file_path });
+ emcc.addArg("--shell-file");
244
+ emcc.addFileArg(shell_file_path);
245
+ emcc.addFileInput(shell_file_path);
246
247
248
const install_step = b.addInstallDirectory(.{
0 commit comments