mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:30:53 +01:00
[PR #973] runtime: compile the shim registry once for compatible Windows targets #1010
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#1010
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/973
Author: @Kadamitas
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:build/reuse-registry-object📝 Commits (1)
24ab90cruntime: compile the shim registry once for compatible Windows targets📊 Changes
1 file changed (+47 additions, -39 deletions)
View changed files
📝
runtime/CMakeLists.txt(+47 -39)📄 Description
Claimed in the coordination issue as: compile the shim registry once for compatible Windows targets (unlisted build work).
What and why
The Windows runtime and 40 possible test/tool targets each listed the same
shims/registry.cpp. This change compiles the common implementation in a CMake object library. Each executable links its own copy, so process-local state and static shim registrations keep their original ownership.39 of the 41 source lists can share this object. The XMem test keeps a private compilation because clang-cl enables asynchronous exception handling there. The loader fuzzer keeps a private compilation for its AddressSanitizer and STL annotation settings. The number of targets enabled depends on the installed libraries and generator options.
Tested
startup_trace,xmem,process_cmdline,bcrypt_rng, andbcrypt_rng_seeded. All five passed.LEONIDA_LOADER_FUZZ_ASAN=ON. Built the shared registry object and compiled the fuzzer's private registry source with/fsanitize=addressand both STL annotation disables. The complete dynamic-CRT test build on this older toolset stops in main's separatecrt_timed_wait.cpp; those full binaries were not tested in that configuration. clang-cl was not run.git diff --checkand the repository's no-game-data checker passed.GPUs tested: N/A, CPU-only build change. No frame-rate claim.
AI-assisted: yes, OpenAI Codex.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.