Commit Graph

19 Commits

Author SHA1 Message Date
3e9c4778f7 Merge pull request #1484 from kawaii-shakal/build-fallback-sandbox-user32
build_runtime: link user32 into vk_sandbox in the cl.exe fallback (BUILD-FALLBACK-SANDBOX-USER32)
2026-11-28 11:20:39 +01:00
9336540a5b build_runtime: link user32 into vk_sandbox in the cl.exe fallback (BUILD-FALLBACK-SANDBOX-USER32)
CMake's Visual Studio and Ninja builds link kernel32, user32, gdi32 and the other
standard libraries into every program. A plain cl line links none of them.
vk_sandbox opens a window, so the fallback's link stopped at 14 unresolved
__imp_ symbols (CreateWindowExW, PeekMessageW, ...), and build_runtime.ps1
exited 1 on any machine without CMake and Ninja.

The new test fails any fallback cl line whose test source calls the window
API without /link user32.lib.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 06:23:53 +05:00
1e9c868cb6 tests: check paths with non-ASCII characters in the child's own encoding (TEST-NON-ASCII-PATHS)
These cases decoded a child's ANSI or OEM output as something else, so they failed on Windows when the temp folder's name was not ASCII.
2026-11-24 22:06:00 +01:00
17bbb2dfb8 Merge remote-tracking branch 'origin/pr/8946' 2026-11-23 17:41:06 -05:00
1cd7eb9e7c build_runtime: the cl.exe fallback builds vk_sandbox and vk_ps_sweep (EGEN-FALLBACK-SANDBOX-SWEEP)
tools/sandbox.py starts runtime/build/vk_sandbox.exe (without it the tool ends at 'unsupported: vk_sandbox is not built'), and tools/ps_sweep.py --exe / tools/ab_control_flow.py --all-attachments start runtime/build/vk_ps_sweep.exe. CMake builds both in its Vulkan tools loop; the fallback built neither, so a fallback build had no harness for either pixel check of translated shaders.

tests/test_build_runtime_fallback.py collects the harness names every Python tool under tools/, scripts/ and runtime/test/shaders/ starts and requires the fallback to build them: vk_sandbox and vk_ps_sweep fail on 5d74c272 and pass with the two cl lines.
2026-11-23 22:59:31 +01:00
45d3f945d5 test: the fallback's gta6rt line has exactly one /BASE 2026-11-23 20:50:30 +01:00
f37693fe39 build_runtime.ps1: the cl.exe fallback links gta6rt with the same /BASE as CMake 2026-11-23 20:49:19 +01:00
546aacc7f0 gta6rt: link with an 8 MB stack; a game thread with the default size had 1 MB for a driver's compiler (RT-400) (#5468)
Squash-merged after review of PR #5468 - gta6rt: link with an 8 MB stack; a game thread with the default size had 1 MB for a driver's compiler (RT-400)
2026-11-23 08:09:40 -06:00
7a1e3193ea Merge pull request #2717 from Wasler
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:06:01 -05:00
35616ce677 build_runtime.ps1: fall back to native cmake + ninja on PATH
# Conflicts:
#	scripts/build_runtime.ps1
#	tests/test_build_runtime_fallback.py
2026-11-23 00:04:40 +02:00
1a193dbf9c Merge pull request #3825 from haizenc 2026-11-22 17:04:05 -05:00
af1415ee88 test_build_runtime_fallback: every vk_* harness the GPU suite starts must be built by the fallback 2026-11-22 23:51:20 +02:00
ac95cfaf96 Merge pull request #2497 from DanielDeGiorgio 2026-11-22 15:10:55 -05:00
a7eba38bd2 Keep the runtime batch regression in a standalone test 2026-11-22 19:40:46 +01:00
2212eadd1b Merge pull request #2520 from Dominik 2026-11-22 13:15:53 -05:00
22bc8d44fa build_runtime.ps1: the cl.exe fallback compiles shims/file_system.cpp (BUILD-680)
main.cpp calls rt::fs::configure (GAME: paths), but the direct-cl.exe
fallback (VS Build Tools without the CMake component) left
shims/file_system.cpp out of the launcher's sources, so gta6rt failed to
link (LNK2019/LNK1120, found by @Ingenioeren). Added to $files.

test_build_runtime_fallback: every .cpp in CMake's add_executable(gta6rt
...) must be in the fallback's launcher list, so the two can't drift apart
again (fails before this change on shims\file_system.cpp).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:20:07 +00:00
8ff14b1400 Preserve Unicode paths in the Windows runtime build wrapper (BUILD-681) 2026-11-22 18:14:53 +01:00
ddd4b7a8b5 scripts/build_runtime.ps1: switch to UTF-8 (chcp 65001) so Ninja /showIncludes tracks headers on non-English Windows 2026-11-22 14:41:41 +01:00
f4ee349968 build_runtime.ps1: the cl.exe fallback builds the GPU test harnesses the tools need
Without VS's "C++ CMake tools" component, build_runtime.ps1 compiles
with cl.exe directly, and that list never built vk_compute_test,
vk_store_test or vk_harness (the programs check.py and run_gpu_tests.py
require and valu_fuzz.py/lds_fuzz.py run), nor vk_image_fuzz
(image_fuzz.py's harness). TEST-71 on that path stopped at
"vk_compute_test not found". Build them the way the fallback builds
vk_texture_test. tests/test_build_runtime_fallback.py checks that the
fallback builds every harness those tools name and that each source it
compiles exists.

Found by @derekhearst.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:46:54 -06:00