Skip to content

v0.6.1 — pin sokol-zig fork with NO_SOKOL_APP patch (supersedes v0.6.0)

Choose a tag to compare

@apotema apotema released this 26 May 11:03
· 35 commits to main since this release

Supersedes v0.6.0

v0.6.0's fix (dropping with_sokol_imgui_no_app on every target) introduced a new desktop break: it desymmetrised the option set passed to b.dependency("sokol", ...) between this bridge and labelle-assembler/backends/sokol/build.zig. Zig keys dependencies by their option struct, so two separately compiled sokol_clib artifacts now ended up in the same binary — only one had the cimgui include path injected, so the game's sokol_imgui.c failed with 'cimgui.h' file not found.

Consumers on v0.6.0 should pin v0.6.1 directly.

What's new

Bug fixes

  • fix(sokol-bridge): re-pin sokol-zig at labelle-toolkit fork with no_app patch (ab0e3c2)

    Re-pin the sokol dep at labelle-toolkit/sokol-zig commit 6b8609d — a 1-commit branch on top of upstream floooh/sokol-zig @ 8b1a651 that applies patches/sokol-zig-no-sokol-app.diff. The patch adds a with_sokol_imgui_no_app build option that defines SOKOL_IMGUI_NO_SOKOL_APP when compiling sokol_imgui.c.

    Restored with_sokol_imgui_no_app = true on every non-Android target, matching the option set already in use by labelle-assembler/backends/sokol/build.zig. Symmetric option set → single sokol_clib artifact → cimgui include path resolves → headless preview mode (labelle-assembler#140) is back.

Why a fork instead of dropping the feature

The 6-line patch is small enough to be a candidate upstream PR; pinning the labelle-toolkit fork is the bridge until/unless floooh/sokol-zig accepts it.

Compatibility

  • First cut against labelle-core 1.14.x.
  • No API changes in bridge.zig.

Refs labelle-assembler#140, labelle-assembler#146.