Skip to content

Gate paths in build.zig.zon - #2

Open
nat3Github wants to merge 3 commits into
david-vanderson:mainfrom
nat3Github:c-sdl2-dev
Open

nat3Github wants to merge 3 commits into
david-vanderson:mainfrom
nat3Github:c-sdl2-dev

Conversation

@nat3Github

@nat3Github nat3Github commented Sep 4, 2026

Copy link
Copy Markdown

see david-vanderson/dvui#975

gates paths and also fixes sysroot handling so this can be compiled with --sysroot

@nat3Github
nat3Github marked this pull request as draft September 4, 2026 23:37
@nat3Github
nat3Github marked this pull request as ready for review September 6, 2026 08:31
Generalises the existing Linux -Dsystem_include_path/-Dlibrary_path options and
adds -Dsystem_framework_path, replacing the macOS b.sysroot block.

--sysroot is graph-wide: it also reaches native host-tool steps in the same build
graph and re-roots every absolute -L onto itself. Plain build options let the
paths go only to the cross compile/link step.

Claude-Session: https://claude.ai/code/session_0172xcFVWUqrMeXfDPoyi3V2
…ath/-Dframework_path/-Dlibrary_path

Drop the redundant 'system_' prefix from the include/framework flag names so
all three cross-compile options are named consistently (library_path already
had no prefix). Local identifiers keep the 'system_' prefix for legibility
(e.g. const system_library_path = b.option(..., "library_path", ...)).

Claude-Session: https://claude.ai/code/session_0172xcFVWUqrMeXfDPoyi3V2
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