File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ pub const StepOptions = struct {
182182 embed_paths : ? []const EmccFilePath = null ,
183183 preload_paths : ? []const EmccFilePath = null ,
184184 shell_file_path : ? std.Build.LazyPath = null ,
185+ out_file_name : ? []const u8 = null ,
185186 install_dir : std.Build.InstallDir ,
186187};
187188
@@ -226,7 +227,13 @@ pub fn emccStep(
226227 }
227228
228229 emcc .addArg ("-o" );
229- const out_file = emcc .addOutputFileArg (b .fmt ("{s}.html" , .{wasm .name }));
230+ const out_file = out_file : {
231+ if (options .out_file_name ) | out_file_name | {
232+ break :out_file emcc .addOutputFileArg (out_file_name );
233+ } else {
234+ break :out_file emcc .addOutputFileArg (b .fmt ("{s}.html" , .{wasm .name }));
235+ }
236+ };
230237
231238 if (options .use_preload_plugins ) {
232239 emcc .addArg ("--use-preload-plugins" );
You can’t perform that action at this time.
0 commit comments