tooling: accept absolute startup build directories #2692

Merged
louisdibiasi merged 3 commits from upstream-pr/2700 into main 2026-11-26 03:12:01 +00:00
louisdibiasi commented 2026-11-26 02:38:31 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by louisdibiasi on 2026-11-26T02:38:31Z.


Change

run.ps1 -BuildDir prefixes every value with the repository root, so an absolute build directory becomes an invalid combined path and the launcher exits while copying the first stand-in DLL. It also interprets wildcard characters in the directory name: a path containing brackets can silently copy no DLLs and still start the debugger. Use rooted paths as supplied and copy from literal paths, while keeping repository-relative resolution for relative values. Document the option alongside the run command.

The synthetic launcher fixture checks that all eight stand-ins are copied from an absolute build directory containing spaces and brackets, alongside the existing relative-path cases. A missing directory must still stop before the debugger starts. The original script failed the absolute case in both PowerShell versions. After the first fix, the bracket case exposed missing copies in both versions; the literal-path fix passes it. No application data is used.

Verification

Windows x64, MSVC 19.44, head 51639539:

  • out/pe-env/Scripts/python.exe -B tests/startup_run_ps1_check.py: passed with Windows PowerShell and PowerShell 7, including relative, absolute, missing-directory and existing mutation controls. The new copy assertions failed for all eight DLLs per shell before the literal-path change.
  • git diff --check: clean.
  • On earlier head 1a2f09df, out/pe-env/Scripts/python.exe -B tests/docs_links_check.py passed (19 Markdown files, 519 links); bidi controls passed before its upstream merge.
  • On base fa189d2e before merging unrelated upstream commits, cmake --build --preset pr and ctest --preset pr --no-tests=error: 34 passed, 4 MinLOD capability skips. The focused launcher check was rerun after the final change.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6618301142 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2700). Originally posted by [louisdibiasi](https://github.com/louisdibiasi) on 2026-11-26T02:38:31Z. --- ## Change `run.ps1 -BuildDir` prefixes every value with the repository root, so an absolute build directory becomes an invalid combined path and the launcher exits while copying the first stand-in DLL. It also interprets wildcard characters in the directory name: a path containing brackets can silently copy no DLLs and still start the debugger. Use rooted paths as supplied and copy from literal paths, while keeping repository-relative resolution for relative values. Document the option alongside the run command. The synthetic launcher fixture checks that all eight stand-ins are copied from an absolute build directory containing spaces and brackets, alongside the existing relative-path cases. A missing directory must still stop before the debugger starts. The original script failed the absolute case in both PowerShell versions. After the first fix, the bracket case exposed missing copies in both versions; the literal-path fix passes it. No application data is used. ## Verification Windows x64, MSVC 19.44, head 51639539: - `out/pe-env/Scripts/python.exe -B tests/startup_run_ps1_check.py`: passed with Windows PowerShell and PowerShell 7, including relative, absolute, missing-directory and existing mutation controls. The new copy assertions failed for all eight DLLs per shell before the literal-path change. - `git diff --check`: clean. - On earlier head 1a2f09df, `out/pe-env/Scripts/python.exe -B tests/docs_links_check.py` passed (19 Markdown files, 519 links); bidi controls passed before its upstream merge. - On base fa189d2e before merging unrelated upstream commits, `cmake --build --preset pr` and `ctest --preset pr --no-tests=error`: 34 passed, 4 MinLOD capability skips. The focused launcher check was rerun after the final change. AI-assisted (Codex).
upstream-sync closed this pull request 2026-11-26 04:04:23 +00:00
R0Y00 commented 2026-11-26 04:04:24 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T03:09:58Z.

Review: APPROVED


Re-ran the source-built copy and launcher checks on Windows PowerShell 5.1 and PowerShell 7. The repository-relative build, absolute build path containing brackets, and missing-directory refusal all passed on both shells. The change preserves the relative default and keeps the copy literal.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6068032239 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2700#pullrequestreview-6068032239). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T03:09:58Z. **Review:** APPROVED --- Re-ran the source-built copy and launcher checks on Windows PowerShell 5.1 and PowerShell 7. The repository-relative build, absolute build path containing brackets, and missing-directory refusal all passed on both shells. The change preserves the relative default and keeps the copy literal.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!2692
No description provided.