Skip to content

Commit ca664cb

Browse files
Fix zig compileRaylib target to emscripten (#5239)
1 parent b99a6cc commit ca664cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,8 @@ fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.
386386
setDesktopPlatform(raylib, options.platform);
387387
},
388388
.emscripten => {
389+
const activate_emsdk_step = emsdk.zemscripten.activateEmsdkStep(b);
390+
raylib.step.dependOn(activate_emsdk_step);
389391
raylib.root_module.addCMacro("PLATFORM_WEB", "");
390392
if (options.opengl_version == .auto) {
391393
raylib.root_module.addCMacro("GRAPHICS_API_OPENGL_ES3", "");

0 commit comments

Comments
 (0)