mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:50:52 +01:00
[PR #1484] build_runtime: link user32 into vk_sandbox in the cl.exe fallback (BUILD-FALLBACK-SANDBOX-USER32) #1514
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#1514
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/1484
Author: @kawaii-shakal
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:build-fallback-sandbox-user32📝 Commits (3)
9336540build_runtime: link user32 into vk_sandbox in the cl.exe fallback (BUILD-FALLBACK-SANDBOX-USER32)becc491Merge remote-tracking branch 'origin/main' into build-fallback-sandbox-user325c79445Merge upstream main into build-fallback-sandbox-user32📊 Changes
2 files changed (+18 additions, -1 deletions)
View changed files
📝
scripts/build_runtime.ps1(+1 -1)📝
tests/test_build_runtime_fallback.py(+17 -0)📄 Description
Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7149457522 (BUILD-FALLBACK-SANDBOX-USER32)
What and why
scripts/build_runtime.ps1has a fallback for machines without CMake and Ninja: it builds each program with its ownclline. CMake's Visual Studio and Ninja generators link the standard Windows libraries into every program (CMAKE_CXX_STANDARD_LIBRARIES: kernel32, user32, gdi32, ...). A plainclline links none of them.vk_sandboxopens a window, so its fallback link failed with 14 unresolved__imp_*symbols (CreateWindowExW,PeekMessageW,RegisterClassW,GetAsyncKeyState, ...).build_runtime.ps1then exited 1, and so didmake_game.py --stages ...,runtime, which calls it.scripts/build_runtime.ps1:/link user32.libon thevk_sandboxline.tests/test_build_runtime_fallback.py: newtest_a_program_that_opens_a_window_links_user32. It checks every fallbackclline whose test source calls the window API and requiresuser32.libon it. Without the fix it fails onvk_sandbox.cpp.Tested
python -I tests/test_build_runtime_fallback.py: 11 of 11 pass. The new test fails without the script change.make_game.py --stages check,shaders,runtime, on a machine with VS 2026 and the Vulkan SDK but no Ninja. That run used a checkout ofa28927849with the same one-line change, because that is the commit my translated shaders came from; thevk_sandboxline is identical on current main. Before the change it failed with the LNK2019 / LNK1120 above. After it, every fallback program built, includingvk_sandbox.exe, and the stage finished in 46 s.VULKAN_SDK, native (no WSL).AI-assisted: yes (Claude Code, Claude Opus 5.5).
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.