tooling: accept absolute startup build directories #2692
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2700"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by louisdibiasi on 2026-11-26T02:38:31Z.
Change
run.ps1 -BuildDirprefixes 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.1a2f09df,out/pe-env/Scripts/python.exe -B tests/docs_links_check.pypassed (19 Markdown files, 519 links); bidi controls passed before its upstream merge.fa189d2ebefore merging unrelated upstream commits,cmake --build --preset prandctest --preset pr --no-tests=error: 34 passed, 4 MinLOD capability skips. The focused launcher check was rerun after the final change.AI-assisted (Codex).
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.