Repository navigation
build(libobs): cache lib-module archives by what they compile (#3262) - #3321
Merged
Merged
Conversation
zackees
force-pushed
the
build/3262-module-cache
branch
from
November 1, 2026 02:14
5aca13b to
c7bba8d
Compare
zackees
marked this pull request as ready for review
November 1, 2026 02:21
zackees
enabled auto-merge
November 1, 2026 02:21
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 1, 2026
This was referenced Nov 1, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 1, 2026
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.
Refs #3262. Stacked on #3318 (modules as static archives); this retargets to master once #3318 merges.
ci/libobs_modules.pykeys each libobs lib-module and caches its archive:-M -MG, no compile), and the compiler's--version. It is blake2b, not BLAKE3, because ci scripts stay stdlib-only.restore: copies each hit to<build>/libobs-modcache/and writeshits.cmake.store: copies the archive of each module that was built.libobs/cmake/modules.cmake: with-DOBS_LIBOBS_MODULE_CACHE, a hit becomes an IMPORTED archive, still linked whole. An unbuilt-keyprobeOBJECT target keeps the hit's compile commands in compile_commands.json, so a later edit changes the key and the nextrestoredrops the hit. A changedhits.cmakere-runs configure.RED:
01b353e98addsci/test_libobs_modules_cache.py. It fails without the tool (FileNotFoundError: ci/libobs_modules.py).GREEN:
5aca13b05. The 4 cache tests and the 3 module tests pass, and./lintpasses.End to end (Linux, linux-validate container, zccache warm):
storerestore, reconfigure, build)libobs/graphics/effect.c.hlibobs-mod-graphics)libobs.soexports are identical between A and B (1,767).What's left on #3262 (why this is Refs, not Fixes):
_cargo-build_libobs_rust, build(libobs): cache the Rust staticlib as a module and drop needless Corrosion serialisation #3265) and most of the rest is the two configures; the C modules cost nothing.restorestops with a message on Windows.Tiers 1-4 don't apply: this is build tooling with no Rust or C behavior change.