conformance build.ps1: find Visual Studio's CMake and name no Visual Studio version (OLD-9962) #1822

Open
github-bot wants to merge 2 commits from github-bot/gh-1822 into main AGit
Owner

@⁠Ch1mpleo on GitHub · 2026-11-25 12:35 UTC · original
Ch1mpleo:carry/old-9962 → main · +153 −3 · 2 files · 2 commits · open

Claimed in the coordination issue as: OLD-9962 (#1608)

What and why

Carries forward old-pr/9962 (draft #229, preserving Leeahmy's two original commits) rebased onto current main. Updates ools/conformance/native/scripts/build.ps1 to locate Visual Studio's CMake without hardcoding a Visual Studio version, and adds ests/test_conformance_build_script.py.

Tested

  • python -I tests/test_conformance_build_script.py — 5 tests, OK (Windows 11 x64, Python 3.14.7).
  • python -m compileall -q tests/test_conformance_build_script.py — exit 0.
  • python -I scripts/check_no_game_data.py tests/test_conformance_build_script.py tools/conformance/native/scripts/build.ps1 — exit 0.

GPUs tested: n/a (CPU-only PowerShell script & unit test)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled
    eeds rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — no translator change)
**@⁠Ch1mpleo** on GitHub · 2026-11-25 12:35 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1822) `Ch1mpleo:carry/old-9962` → `main` · +153 −3 · 2 files · 2 commits · open Claimed in the coordination issue as: OLD-9962 (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why Carries forward old-pr/9962 (draft #229, preserving Leeahmy's two original commits) rebased onto current main. Updates ools/conformance/native/scripts/build.ps1 to locate Visual Studio's CMake without hardcoding a Visual Studio version, and adds ests/test_conformance_build_script.py. ### Tested - python -I tests/test_conformance_build_script.py — 5 tests, OK (Windows 11 x64, Python 3.14.7). - python -m compileall -q tests/test_conformance_build_script.py — exit 0. - python -I scripts/check_no_game_data.py tests/test_conformance_build_script.py tools/conformance/native/scripts/build.ps1 — exit 0. GPUs tested: n/a (CPU-only PowerShell script & unit test) AI-assisted: yes ### Checklist - [x] Based on current main and merges cleanly (a conflicting pull request is labeled eeds rebase). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — no translator change)
The script took CMake from PATH or C:/Program Files/CMake only, so it failed on
a Visual Studio Build Tools install, which includes its own. It also always
asked for Visual Studio 2022. Look for CMake as scripts/build_runtime.ps1 does
and leave the generator to CMake.

The CMake lookup was found by evilclanker9000.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The stand-in's batch file held the log path, and paths came back through the
console code page. Found by Osis78.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:07:11 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 20:01 UTC · original

Reviewed fa41fe9ea: build.ps1 CMake lookup rewrite (VS-bundled -> PATH with VS generators -> default install, vswhere, no -G) plus its Windows-only test. PowerShell was not available to me, so the new test ran only to its skip (5 skipped on both trees; same with the file copied onto main); I checked statically that its expectations match the script exactly (message, -S/-B/-A order, no -G, BUILD EXIT, bundled path, CMAKE_GENERATOR save/restore) and that main's script satisfies none of them. This is therefore a read-only review of the script itself; a Windows CI run should settle it. No finding. Non-blocking: tools/conformance/native/README.md:22 still shows -G "Visual Studio 17 2022" as the equivalent manual command. AI-assisted review.

Recommendation: Merge

**@⁠PierreEbele** on GitHub · 2026-11-25 20:01 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1822#issuecomment-7173073433) Reviewed fa41fe9ea: build.ps1 CMake lookup rewrite (VS-bundled -> PATH with VS generators -> default install, vswhere, no -G) plus its Windows-only test. PowerShell was not available to me, so the new test ran only to its skip (5 skipped on both trees; same with the file copied onto main); I checked statically that its expectations match the script exactly (message, -S/-B/-A order, no -G, BUILD EXIT, bundled path, CMAKE_GENERATOR save/restore) and that main's script satisfies none of them. This is therefore a read-only review of the script itself; a Windows CI run should settle it. No finding. Non-blocking: tools/conformance/native/README.md:22 still shows -G "Visual Studio 17 2022" as the equivalent manual command. AI-assisted review. **Recommendation:** Merge
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1822/head:github-bot/gh-1822'
git switch 'github-bot/gh-1822'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1822'
git switch 'github-bot/gh-1822'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1822'
git switch 'github-bot/gh-1822'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1822'
git switch 'main'
git merge --squash 'github-bot/gh-1822'
git switch 'main'
git merge --ff-only 'github-bot/gh-1822'
git switch 'main'
git merge 'github-bot/gh-1822'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.