make_game: warn when the runtime stage runs without VULKAN_SDK (MAKE-GAME-VULKAN-SDK-WARN) #639
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!639
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/639/head"
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?
@DesertGamer on GitHub · 2026-11-24 10:41 UTC · original
DesertGamer:fix/make-game-vulkan-sdk-warn→main· +40 −0 · 2 files · 1 commits · merged 2026-11-25 21:25 UTCClaimed in the coordination issue as: MAKE-GAME-VULKAN-SDK-WARN (#14)
What and why
make_game.pychecksVULKAN_SDKinpreflightonly for the pipelines stage. A Windows runtime stage with noVULKAN_SDKpasses preflight and builds a runtime that may have no Vulkan D3D12 device:scripts/build_runtime.ps1passes
-DLEONIDA_REQUIRE_VULKAN=ONonly when the variable is set, otherwise CMake only warns that the Vulkan headersare missing and the build still succeeds.
LEONIDA_D3D12=vulkanis then ignored without a word, and a bootmeasurement taken with that runtime looks like a Vulkan one but runs on the Windows D3D12 device. This is how a
terminal that was opened before the Vulkan SDK installer set
VULKAN_SDKproduced a wrong measurement.preflightnow prints a warning in that case (Windows,runtimestage, no--runtime-build,VULKAN_SDKunset orempty). It does not stop the build, because a runtime without Vulkan is still valid, and it says "may" because the
headers can also be found some other way. The warning comes after the required-prerequisite check, so it never
duplicates a failure.
Tested
python -I tests/test_make_game_pipeline_preflight.py: 23 tests, OK (1 skipped on Windows). Three are new: thewarning appears once for an unset and for an empty
VULKAN_SDK, it is absent with the SDK set, and it is absent fora prebuilt
--runtime-buildand on a non-Windows system.make_game.pychange reverted the new warning test fails (2 subtests), with it applied it passes.tests/test_make_game_*.pyandtests/test_spirv_stubs.pypasses.GPUs tested: n/a
AI-assisted: yes (Claude Code, Sonnet 5.5)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.@MoonEyes on GitHub · 2026-11-24 14:37 UTC · original
Verified locally on a throwaway worktree of
cf73e3497(Windows 11, Python 3.14.0):python -I tests/test_make_game_pipeline_preflight.py: 23 tests, OK (skipped=1). Alltests/test_make_game_*.pyandtests/test_spirv_stubs.pypass.runtime,pipelinesand no SDK, only the existing prerequisite failure is printed, no duplicate.git merge-treereports no conflict, and none of the touched code changed on main since the merge base.Looks correct to me.
AI-assisted review (Claude Code).
@aslan2142 on GitHub · 2026-11-25 21:25 UTC · original
Merged, thanks! The new test fails on
mainand passes with this.main7b5232875+cf73e3497: the semantic suite passes (491 files, 6,312 tests, 0 files failed);test_make_game_pipeline_preflightpass; the 15 docs and writer tests pass;check_no_game_data.pyis clean on the 2 changed files.AI-assisted (Claude Code, Claude Opus 5.5).