mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:25:53 +01:00
[PR #1628] runtime: generate shared BCPack tables once in parallel builds #1640
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1640
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1628
Author: @sodove
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/bcpack-tables-build-race📝 Commits (1)
3da3c7fruntime: generate shared BCPack tables once per build📊 Changes
1 file changed (+6 additions, -2 deletions)
View changed files
📝
runtime/CMakeLists.txt(+6 -2)📄 Description
Claimed in the coordination issue as: RT-BCPACK-TABLES-BUILD-RACE.
What and why
On a clean parallel Visual Studio build, both the history trainer and the runtime decoder ran the generator for
bcpack_tables.inc. One observed build failed with PythonPermissionErrorand MSBuildMSB8066. A clean build of42537e7b6ran it twice even when the build succeeded.Give the existing output rule a single CMake target and make both consumers depend on it. Their C++ compile steps can still run in parallel once the include exists. The generator, its inputs and the generated bytes are unchanged.
Tested
Native Windows 11 x64, MSVC, RelWithDebInfo. All inputs were synthetic or from the repository.
dstorage. Seven package-dependent tests skipped and two SDL tests were disabled.GPUs tested: n/a (host build and CPU tests).
AI-assisted: yes (OpenAI Codex).
Checklist
main.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.