Repository navigation
Conversation
cerisier
force-pushed
the
cerisier/zig-static-library-link-semantics
branch
from
November 20, 2026 20:42
1c23fb4 to
a5e0b11
Compare
cerisier
force-pushed
the
cerisier/zig-static-library-link-semantics
branch
from
November 21, 2026 21:33
a5e0b11 to
fcf62ba
Compare
cerisier
changed the base branch from
cerisier/incremental-compile-arguments
to
cerisier/explicit-zig-libc
November 21, 2026 21:34
cerisier
marked this pull request as ready for review
November 21, 2026 21:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A
zig_static_libraryalready exports its native dependencies inCcInfofor the final consumer. Archive creation can use the inputs it needs to compile its own sources.Before
zig build-libreceived native library files and generic linker flags alongside the compilation inputs. A change to a dependency's C implementation could rebuild the Zig archive even when its Zig sources and C headers stayed the same.After
The archive action still receives C headers and the explicit
:libcand:libc++compile flags from #712. Native dependency libraries and generic linker flags reach the consumer through the existingCcInfo.A native implementation change can now reuse the Zig archive and relink the consumer. Anyone linking the
.aoutside Bazel supplies those native dependencies at the final link.