Skip to content

fix(homebrew): provide SDL headers to Zig translation - #403

Merged
forketyfork merged 2 commits into
mainfrom
fix/homebrew-sdl-include-paths
Sep 4, 2026
Merged

fix(homebrew): provide SDL headers to Zig translation#403
forketyfork merged 2 commits into
mainfrom
fix/homebrew-sdl-include-paths

Conversation

@forketyfork

Copy link
Copy Markdown
Owner

Issue

Homebrew source installation fails after the Zig 0.16 C translation migration because addTranslateC cannot find the SDL3 headers in Homebrew's dependency prefixes.

Solution

The formula exports the stable include roots for SDL3 and SDL3_ttf before invoking Zig. The existing build configuration then applies those paths to both C translation and compilation. The development documentation now records this packaging requirement.

Context

The fix complements the existing macOS SDK workaround used by the Homebrew formula.

Issue: Homebrew source installs fail after the Zig 0.16 C translation migration because the addTranslateC step cannot locate SDL3 and SDL3_ttf headers from Homebrew linker paths.\nSolution: Export the stable Homebrew include roots before invoking Zig so the existing build configuration applies them to C translation and compilation. Document the packaging requirement and keep the formula metadata style-clean.
@forketyfork
forketyfork marked this pull request as ready for review September 4, 2026 06:23
@forketyfork
forketyfork merged commit 1c0f6db into main Sep 4, 2026
4 checks passed
@forketyfork
forketyfork deleted the fix/homebrew-sdl-include-paths branch September 4, 2026 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant