mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:25:53 +01:00
[PR #639] [MERGED] make_game: warn when the runtime stage runs without VULKAN_SDK (MAKE-GAME-VULKAN-SDK-WARN) #679
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#679
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/639
Author: @DesertGamer
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:fix/make-game-vulkan-sdk-warn📝 Commits (1)
cf73e34make_game: warn when the runtime stage runs without VULKAN_SDK📊 Changes
2 files changed (+40 additions, -0 deletions)
View changed files
📝
make_game.py(+4 -0)📝
tests/test_make_game_pipeline_preflight.py(+36 -0)📄 Description
Claimed in the coordination issue as: MAKE-GAME-VULKAN-SDK-WARN (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7129032727)
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.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.