build, verify: fix MSVC /W4 warnings and resolve ordinal imports #169
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/brcly--TuxBox!169
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/169/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?
@Vladimir-Human on GitHub · 2026-11-25 12:55 UTC · original
Vladimir-Human:build/msvc-w4-guest-narrowing→main· +70 −12 · 6 files · 1 commits · merged 2026-11-25 14:21 UTCSummary
Unblock native Windows MSVC builds and
LanesGPU verification (tuxbox.py verify) without changing Linux/Proton behavior:/W4 /WXwarnings in guest fixtures:desc.SampleDesc.Count = 1(UINT) fromdesc.DepthOrArraySize/desc.MipLevels(UINT16,C4244) inruntime/d3d12/buffer_import_guest.cppandexamples/lanes/screen.cpp.profiletorelease_profileinruntime/d3d12/root_cbv_guest.cppso it does not shadowframe_abi::profile(C4459).std::string::assign(wchar_t*, wchar_t*)on the ASCII PCI ID buffer with an explicitstatic_cast<char>loop inexamples/lanes/course.cpp(C4244).missing_provider_importsinproject_tuxbox/verify.pyto resolve#ordinalstatic import records produced by MSVClink.exeagainst.def@ordinalentries viaexport_table(provider), preserving fast-path matching for named imports and explicit#ordinalexpectations (GameInput.dll#1).tests/test_verify.py(ProviderImportTests) covering fast-path named/ordinal checks, ordinal resolution againstexport_table, and negative cases for wrong/unknown ordinals and missing explicit#1.Verified on Lanes
python tuxbox.py checkpassed on this branch (not fully runnable on Windows host: fullunittest discoverhits 5 pre-existing Linux-onlyfcntl/os.sched_getaffinitytest errors, andlanes-shader-cacheinproject_tuxbox/verify.pyis gated onhost.backend == "proton"; equivalent build, Rust CI checks, Windows-compatible Python tests, and nativelanes+lanes-selftestGPU gates passed below)lanesandlanes-selftestbuild &tuxbox.py verifyordinal-import verification; modifiedbuffer_import_guest.cppandroot_cbv_guest.cppare also verified directly on the GPU)GPU, driver and backend: NVIDIA GeForce RTX 4070 SUPER (
pci=10de:2783), NVIDIA driver32.0.16.2114, Windows 11 native backend (MSVC19.44.35207, Windows SDK10.0.26100.0DXC, Rust1.95.0).Paste the summary printed at the end:
Checks
cargo test --locked -p tuxbox-d3d12: 98 passed, 0 failedcargo test --locked -p tuxbox-dxbc --features native-bindings: 53 passed, 0 failedcargo test --locked -p tuxbox-xg-layout: 14 passed, 0 failedcargo test --locked --manifest-path tools/shader-compiler/Cargo.toml: 279 unit + 2 integration passed, 0 failedcargo check --locked --target x86_64-pc-windows-msvc -p tuxbox-d3d12 -p tuxbox-bvh: exit 0python -m unittest tests.test_verify tests.test_build_msvc tests.test_check tests.test_repository_hygiene tests.test_inspect tests.test_cli -v: 29 ran, 28 ok, 1 skipped (test_case_collisionon Windows case-insensitive filesystem)python -m unittest discover -s tests -q: 281 ran, 93 skipped, 5 pre-existing Linux-only errors on Windows (ModuleNotFoundError: No module named 'fcntl'intests/test_refusal_reasons.py;AttributeError: ... 'sched_getaffinity'intests/test_shader_pack.py)AI-assisted implementation and verification.