Merge pull request #4910 from marler8997/fixEmscripten

build.zig: fix building raylib for emscripten
This commit is contained in:
Ray 2025-04-26 22:50:49 +02:00 committed by GitHub
commit 27a4fe8851
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -504,7 +504,7 @@ fn addExamples(
raylib: *std.Build.Step.Compile,
) !*std.Build.Step {
if (target.result.os.tag == .emscripten) {
@panic("Emscripten building via Zig unsupported");
return &b.addFail("Emscripten building via Zig unsupported").step;
}
const all = b.step(module, "All " ++ module ++ " examples");