[PR #378] [MERGED] OLD-7067: build scripts refuse a folder with % in its path up front #432

Closed
opened 2026-11-26 20:17:51 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/378
Author: @lines9686-rgb
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD

Base: main ← Head: build-refuse-percent-path


📝 Commits (2)

  • 5dbd92b build scripts: refuse a folder with % in its path up front
  • 2a4f650 build_llvm_mc.ps1: a relative -Temp is checked as the full path it resolves to

📊 Changes

4 files changed (+80 additions, -0 deletions)

View changed files

📝 docs/testing.md (+1 -0)
📝 scripts/build_llvm_mc.ps1 (+7 -0)
📝 scripts/build_runtime.ps1 (+5 -0)
➕ tests/test_build_percent_path.py (+67 -0)

📄 Description

Claimed in the coordination issue as: OLD-7067 (carried over from the original repository, same author)

What and why

A checkout with % in its path fails late and confusingly: cmd.exe expands %...% in the generated _build.cmd, and cl.exe rejects a % in the path-valued /D definitions of the runtime's test targets (D8038) however it is quoted (@ezbyDev's measurements in the original repository). build_runtime.ps1 now stops before looking for Visual Studio when the checkout path has a %, and build_llvm_mc.ps1 when -Temp has one, each naming the folder; docs/testing.md gets a Known-problems row.

Tested

python tests/test_build_percent_path.py (runs both scripts with such a path, with git, python and vswhere hidden so a missing check cannot start a real build): OK on Windows 11.

GPUs tested: n/a

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (scripts/check_no_game_data.py over every changed file: clean).
  • A new translator rule is in the contract table of docs/design.md: n/a

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/378 **Author:** [@lines9686-rgb](https://github.com/lines9686-rgb) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@QemmHD](https://github.com/QemmHD) **Base:** `main` ← **Head:** `build-refuse-percent-path` --- ### 📝 Commits (2) - [`5dbd92b`](https://github.com/ubiquitarianism/leonida/commit/5dbd92b92d147cdc5c365fffd8a3f83c6d6ac5f9) build scripts: refuse a folder with % in its path up front - [`2a4f650`](https://github.com/ubiquitarianism/leonida/commit/2a4f650b7b4e13dc280208719681c4cbaacda6de) build_llvm_mc.ps1: a relative -Temp is checked as the full path it resolves to ### 📊 Changes **4 files changed** (+80 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/testing.md` (+1 -0) 📝 `scripts/build_llvm_mc.ps1` (+7 -0) 📝 `scripts/build_runtime.ps1` (+5 -0) ➕ `tests/test_build_percent_path.py` (+67 -0) </details> ### 📄 Description Claimed in the coordination issue as: `OLD-7067` (carried over from the original repository, same author) ### What and why A checkout with `%` in its path fails late and confusingly: `cmd.exe` expands `%...%` in the generated `_build.cmd`, and `cl.exe` rejects a `%` in the path-valued `/D` definitions of the runtime's test targets (D8038) however it is quoted (@ezbyDev's measurements in the original repository). `build_runtime.ps1` now stops before looking for Visual Studio when the checkout path has a `%`, and `build_llvm_mc.ps1` when `-Temp` has one, each naming the folder; docs/testing.md gets a Known-problems row. ### Tested `python tests/test_build_percent_path.py` (runs both scripts with such a path, with git, python and vswhere hidden so a missing check cannot start a real build): OK on Windows 11. GPUs tested: n/a AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (`scripts/check_no_game_data.py` over every changed file: clean). - [x] A new translator rule is in the contract table of `docs/design.md`: n/a 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:17:51 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#432
No description provided.