Skip to content

lazy platform dependencies lazy, drop unused GL registries - #37

Open
nat3Github wants to merge 1 commit into
allyourcodebase:mainfrom
nat3Github:lean2
Open

nat3Github wants to merge 1 commit into
allyourcodebase:mainfrom
nat3Github:lean2

Conversation

@nat3Github

Copy link
Copy Markdown
Contributor

passing -fsys= skips the fetch and uses the system/sysroot headers instead.
The egl and opengl registries are removed: SDL already ships the EGL/KHR/GLES and GL headers it needs.

zig-pkg footprint: macOS/Windows 26 pkgs/379M -> 1 pkg/52M.
closishes #36

Every dependency except sdl is now lazy, so only what the target needs is
fetched. Passing -fsys=<name> skips the fetch and uses the system/sysroot
headers instead.

The egl and opengl registries are removed: SDL already ships the EGL/KHR/GLES
and GL headers it needs.

zig-pkg footprint: macOS/Windows 26 pkgs/379M -> 1 pkg/52M.
@MasonRemaley

MasonRemaley commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Nice thank you, this seems like a huge improvement to the way I had this set up. I'll review this soon.

CC @SpexGuy this may solve the problem you were having yesterday.

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.

2 participants