Repository navigation
Find Windows CMake and Ninja in paths containing square brackets - #7798
Open
philip-roy-jones wants to merge 1 commit into
Open
philip-roy-jones wants to merge 1 commit into
philip-roy-jones wants to merge 1 commit into
Conversation
PowerShell treats brackets in a tool directory as a wildcard pattern. Find-BuildTool could therefore skip installed CMake and Ninja and send the runtime build through the cl.exe fallback without the GameInput shim. Check the preferred Visual Studio tools and the applications returned by Get-Command using their literal paths. Cover both lookups with synthetic tool directories on Windows. Claim: ItsNotRexed#7599 (comment)
This was referenced Nov 23, 2026
|
Windows, synthetic inputs. Tested 7186024. The Windows PowerShell discovery test found the fixture CMake and Ninja executables under both [sdk] and VS [2022]. The same test with the earlier script failed. This exercises executable path resolution with literal square brackets. AI-assisted verification · GPT-6.2 Astra Medium |
Contributor
|
Tested 7186024 on Windows 11, Python 3.15.2, NVIDIA RTX 4060 Ti (driver 621.24; CPU-only checks, no game files, no GPU/llvm-mc/MSVC used): pass. Ran the test files this PR adds or changes, from a clean checkout of the PR head: AI-assisted (Claude Code). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Windows,
Find-BuildToolcan skip an installed CMake and Ninja when a directory in the resolved path contains square brackets, such as[sdk]. PowerShell interprets those characters as a wildcard pattern. The runtime build can then take the direct compiler fallback and omit the SDL3 GameInput shim. Coordination claim RT-651I changed the two file checks in
scripts/build_runtime.ps1to useTest-Path -LiteralPath ... -PathType Leaf. The Windows regression covers both a bracketed Visual Studio installation and tools found under a bracketed PATH directory.Depends on: #7363 (textual conflict in the selector and its tests; either PR can land first). The tested combination retains #7363's capability checks and both sets of regression cases.
Tested
Windows PowerShell 5.1 and Python 3.13.1, using synthetic tool files. Both new subtests failed against parent
7c082165. On7186024c:py -3.13 -I -B tests/test_build_runtime_fallback.py -vpassed all eight methods, including both bracket cases.py -3.13 -I -B tests/test_build_runtime_batch.py -vpassed.18957f33, all eight combined selection cases passed, including rejection of bundled CMake 3.23 and selection of CMake 4.0 from a bracketed PATH.These checks exercised tool discovery and batch generation. Runtime compilation and GPU testing were outside this run.
AI-assisted: yes. The fixtures contain only synthetic data.