Remove redundant emsdk activations

Examples depend on raylib anyway, and if using emsdk, it will be
activated already.  This activation was causing an error in zig
nightly, so the change here.
This commit is contained in:
Mike Russo 2026-07-03 14:21:30 -06:00
commit 3472e60fbe

View file

@ -63,14 +63,11 @@ pub const emsdk = struct {
}
pub fn emccStep(b: *std.Build, raylib: *std.Build.Step.Compile, wasm: *std.Build.Step.Compile, options: zemscripten.StepOptions) *std.Build.Step {
const activate_emsdk_step = zemscripten.activateEmsdkStep(b);
const emsdk_dep = b.dependency("emsdk", .{});
raylib.root_module.addIncludePath(emsdk_dep.path("upstream/emscripten/cache/sysroot/include"));
wasm.root_module.addIncludePath(emsdk_dep.path("upstream/emscripten/cache/sysroot/include"));
const emcc_step = zemscripten.emccStep(b, &.{}, &.{wasm}, options);
emcc_step.dependOn(activate_emsdk_step);
return emcc_step;
}
@ -797,4 +794,3 @@ fn waylandGenerate(
}
}
}