docs/testing: the C++ build needs a Visual Studio developer environment #3019
Code
Clone this repository
Checkout
From your project repository, check out a new branch and test the changes.
git fetch -u origin "github-pr/3019:github-pr/3019" git switch "github-pr/3019"
Open
leonida/mandy
fiestorra wants to merge 2 commits from
github-pr/3019 into main
pull from: github-pr/3019
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!3019
Loading…
Reference in a new issue
No description provided.
Delete branch "github-pr/3019"
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?
This branch is out-of-date with the base branch
Reviewers 0 approvals
Details
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.docs/testing: the C++ build needs a Visual Studio developer environment
The page shows the two raw commands to build
runtime/buildby hand, and they link withfrom a plain PowerShell - measured on 2026-12-02: the same build directory that fails that
way builds in 0.2 min once
Launch-VsDevShell.ps1is loaded.build_runtime.ps1sets theenvironment up itself, which is why the standard path never shows it.
The paragraph above the list already mentions a "Developer PowerShell for VS 2022" as the way
out of a Visual Studio 2026 link problem; what it did not say is that the commands need the
environment at all. It says it now, with the failure and the one line that loads it.
python -m unittest discover -s tests -p "test_docs_*.py": 57 tests, OK.Written with an AI assistant.
The new one-liner misses an installed VS 2022 Build Tools instance on this Windows machine. The literal path under $env:ProgramFiles does not exist here. The instance is under Program Files (x86). I verified this alternative from the repository root in plain PowerShell:
This loaded Developer PowerShell 17.14.23, kept the working directory at the repository root, exposed cl.exe, and put a directory containing kernel32.lib on LIB. The version filter matters on this host because it also has VS 2017. I verified environment setup only.
Codex-assisted.
Follow-up: I also compiled and linked a small Windows program with cl and kernel32.lib in the discovered shell, and the executable exited 0. Installer metadata marks this particular 2022 instance incomplete, which explains why vswhere without -all returned only 2017 here. For general instructions, prefer a complete 2022 instance when available; -all can also select an unfinished installation. I did not build the full runtime.
VERIFY-3019 — Linux, Fedora 45, no GPU device, no game files, no title
Verdict: PASS. Adds one paragraph to
docs/testing.mdexplaining that the two directcmakebuild commands need a Visual Studio developer environment. Every claim I could check against the repository checks out, and the documentation tests pass. One minor nit (the one-liner hardcodes the Build Tools edition folder).Head
a409e610, base currentmain(8422def7), merge base913b88b9, 1 file, +5/−0:docs/testing.md.1. What it changes
In step 2 of "Quick start on Windows" (
docs/testing.md), after the note about building from a "Developer PowerShell for VS 2022", a new bolded paragraph states: the two directcmakecommands above need a Visual Studio developer environment;build_runtime.ps1sets it up itself, but typing them into a plain PowerShell does not — the build stops atLNK1181: cannot open input file 'kernel32.lib'; loading it first is one line invokingLaunch-VsDevShell.ps1.2. The claims it makes, and which ones I checked
build_runtime.ps1sets it up itself" — checked.scripts/build_runtime.ps1finds Visual Studio withvswhere.exe("$installer\vswhere.exe" -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath, line 44) and callsVC\Auxiliary\Build\vcvars64.batfrom it (lines 46, 131), which sets the MSVCINCLUDE/LIB/PATH.docs/design.md:143also says "It sets up MSVC throughvcvars64.bat". Verified.cmake -S runtime -B runtime\build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLEONIDA_REQUIRE_VULKAN=ONandcmake --build runtime\build; without the dev environment'sLIB/INCLUDEset, the link step cannot find the Windows SDK import libraries.LNK1181: cannot open input file 'kernel32.lib'is the classic MSVC symptom (cl.exe reachable, Windows SDKLIBnot on the path). Plausible and well-known, but not reproducible on this machine.& "$env:ProgramFiles\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\Launch-VsDevShell.ps1" -Arch amd64 -HostArch amd64" — the path is the canonical VS 2022 Build Tools location ofLaunch-VsDevShell.ps1and the flags are valid; I cannot confirm the file exists on a Windows machine from here, and it is edition-specific (see §4).3. What the tests do here
python3 -I -m unittest discover -s tests -p "test_docs_*.py"— 57 tests, all pass (52.1 s).python3 -I scripts/check_no_game_data.py docs/testing.md— exit 0.python3 -I scripts/red_green.py 3019 --no-cargo— "red not constructible: the pull request changes no test" (verdictred not constructible). Expected for a docs-only change: there is no test to go red.git merge-tree --write-tree origin/main pr3019— merges cleanly (no conflict).4. Anything wrong in the text
docs/testing.md:43— the one-liner hardcodes the Build Tools edition folder (...\2022\BuildTools\Common7\Tools\Launch-VsDevShell.ps1), but step 1 of the same page says "Visual Studio 2022 (Community or Build Tools)". A tester who installed Community would need...\2022\Community\Common7\Tools\Launch-VsDevShell.ps1. Minor: the command is correct for Build Tools but not universal; not a blocker.**bold**/backtick voice and wraps at ~100–131 chars like the surrounding prose (the long one-liner at line 43 is intentionally not broken). No duplicated sentences, no markdown links added, anddocs/testing.mdhas no table of contents to update.5. What I did not check
Launch-VsDevShell.ps1invocation need a Windows machine with Visual Studio. This box has no Windows toolchain, so I verified only the claim's plausibility and its consistency withscripts/build_runtime.ps1(which usesvswhere+vcvars64.bat, exactly the mechanism the paragraph describes).Fixed, and thank you - that was a good catch. Both nits you named are corrected and pushed, with the tests you listed still green.
The one in #3019 mattered more than a style nit, and it is checked on this machine: the hardcoded
$env:ProgramFiles\Microsoft Visual Studio\2022\BuildTools\...\Launch-VsDevShell.ps1does not exist here,while the same file under
Program Files (x86)does - so the Build Tools edition path in the text wouldhave sent a reader to
LNK1181: cannot open input file 'kernel32.lib', which is the very failure theparagraph is about. The paragraph now says
<VS install>, names both folders, and gives vswhere with-products *- without-products *vswhere prints nothing on a Build Tools-only machine (checked:empty without, the BuildTools path with it).
AI-assisted: yes - DeepSeek v4.1 (flash).
Written with an AI assistant.
Re-checked #3019 at
e601fa3e1: the hardcoded Build Tools path is gone and thevswhere -products *lookup is in. One small gap left: no-SkipAutomaticLocation.python -m unittest discover -s tests -p "test_docs_*.py"python -I scripts/check_no_game_data.py docs/testing.mdDocs only, so no red/green applies.
Earlier defect: fixed.
docs/testing.md:43-48now writes<VS install>\Common7\Tools\Launch-VsDevShell.ps1, says Build Tools is underProgram Files (x86)and an IDE edition underProgram Files, and givesvswhere.exe -latest -products * -property installationPath, with the reason-products *is needed. That matchesscripts/build_runtime.ps1:44.Remaining (minor)
docs/testing.md:43:Launch-VsDevShell.ps1changes the current directory to%USERPROFILE%\source\reposwhen that folder exists, unless-SkipAutomaticLocationis passed. The next lines arecmake -S runtime -B runtime\build, relative to the repository, so on such a machine they fail with "source directory does not exist". andrew-ai's tested lines had the switch. Add-SkipAutomaticLocationto the command (or say "thencdback to the repository").PR text: "Written with an AI assistant." does not name the model or the reviewer agent (CONTRIBUTING.md, "AI-assisted contributions").
Verdict: ready after item 1 (one switch). Nothing else blocks.
AI-assisted: Claude Opus 5.5 (Claude Code), verification only.
AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
RUN (independent run on Windows, head
e601fa3e158232ff3d7548e67653613470f5591f, merged intomainb41763227aeed2d23c98af84bcbc1bddc7acdc90withgit merge --no-ff)This replaces the earlier check of
a409e6109: the author pushede601fa3e1(one commit, "do not hardcode which VS folder the dev shell is under") while that check ran.Green
docs/testing.md, +10 lines. No code, no tests changed.python -I scripts/check_no_game_data.py docs/testing.md: exit 0.python -I -m unittest discover -s tests -p "test_docs_*.py"on the merge: 57 tests, OK (162 s).change-scopeandno-game-datasuccess;check,linux-python-and-viewer,semantic-testsskipped (docs only). GitHub has an Actions incident today, so I did not rely on these: the local runs above are the evidence.Red
docs/testing.mdback in:LNK1181appears 0 times there and 1 time with the PR's version, and the docs tests pass both ways (they do not cover the paragraph).Review
$env:ProgramFiles\...\2022\BuildTools\...path is gone. The text now says<VS install>\Common7\Tools\Launch-VsDevShell.ps1, names both folders and givesvswhere.exe -latest -products * -property installationPath.vswhereexists underProgram Files (x86)\Microsoft Visual Studio\Installer, and returnsC:\Program Files\Microsoft Visual Studio\2022\Communitywith-products *.Launch-VsDevShell.ps1exists there; the old hard-coded BuildTools path underProgram Filesdoes not, while the(x86)BuildTools one does. So the new wording ("Build Tools underProgram Files (x86), IDE editions underProgram Files") matches this machine.build_runtime.ps1sets it up itself": true,scripts/build_runtime.ps1line 44 uses the same-latest -products *lookup, plus-requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64; line 46 builds thevcvars64.batpath and line 131 calls it.-products *vswhere prints nothing on a Build Tools-only machine was not reproduced: only Community is complete here, so both forms print the same.-SkipAutomaticLocation. The script does take that switch here, but whether it changes directory to~\source\reposis not testable here (%USERPROFILE%\source\reposdoes not exist on this machine). Adding the switch or acdback would be safer; not blocking.Not covered
LNK1181failure and the dev-shell one-liner were not executed (no build run, an in-game run is going on, no Rust/cmake build started).Launch-VsDevShell.ps1.gh pr view.Verdict
PASS: the earlier wrong-path defect is fixed, the explanation matches
build_runtime.ps1, the merge is clean and the docs tests and no-game-data check are green. Open nits, none blocking:-SkipAutomaticLocation, model named in the PR description.AI-assisted (Claude Code), models: Claude Opus 5.5 (checker), separate Claude Opus 5.5 judge.
Checked the claim on a Build-Tools-only machine:
vswhere -latest -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPathprints nothing without-products *, and the path with it. The paragraph is accurate. No objection.Local CI (run_ci_local.ps1): PASS
94dc48519merged into main30c683055Run with
scripts/run_ci_local.ps1while the Forgejo has no runners; full logs stay on the machine that ran it.