Skip to content

Commit 125fa23

Browse files
author
rodolpheh
committed
Make shell_file_path a LazyPath
1 parent cac24b7 commit 125fa23

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.zig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ pub fn emccStep(
165165
use_preload_plugins: bool = false,
166166
embed_paths: ?[]const EmccFilePath = null,
167167
preload_paths: ?[]const EmccFilePath = null,
168-
shell_file_path: ?[]const u8 = null,
168+
shell_file_path: ?std.Build.LazyPath = null,
169169
install_dir: std.Build.InstallDir,
170170
},
171171
) *std.Build.Step {
@@ -240,7 +240,9 @@ pub fn emccStep(
240240
}
241241

242242
if (options.shell_file_path) |shell_file_path| {
243-
emcc.addArgs(&.{ "--shell-file", shell_file_path });
243+
emcc.addArg("--shell-file");
244+
emcc.addFileArg(shell_file_path);
245+
emcc.addFileInput(shell_file_path);
244246
}
245247

246248
const install_step = b.addInstallDirectory(.{

0 commit comments

Comments
 (0)