瀏覽代碼

build.zig: fix building raylib for emscripten

build.zig doesn't support the examples for the emscripten OS but it does
support the raylib library. However, the examples panic if emscripten
is configured which prevents it from building the library. I've replaced
this panic with a fail step to fix this.
pull/4910/head
Jonathan Marler 5 月之前
父節點
當前提交
8d03636132
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      build.zig

+ 1
- 1
build.zig 查看文件

@ -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");

Loading…
取消
儲存