build.sh: support checkout paths containing spaces #27

Manually merged
github merged 1 commit from github-bot/gh-27 into main 2026-12-02 19:16:50 +00:00 AGit
Owner

@⁠SemmerSky on GitHub · 2026-11-30 12:17 UTC · original
SemmerSky:fix/build-path-with-spaces → main · +8 −0 · 1 files · 1 commits · merged 2026-12-02 19:14 UTC

Cloning into a path with spaces (e.g. ~/My Games/VIctory-xmem) makes ./setup.sh fail at the victory step:

error: multiple input filenames provided (first two filenames are `-` and `Games/VIctory-xmem/deps/msvc`)

Cargo splits CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUSTFLAGS on whitespace, and cc does the same with CFLAGS_*, so /winsysroot:<sdk> gets split into two arguments.

When the sdk path contains whitespace, build.sh now creates a space-free symlink at $XDG_CACHE_HOME/victory-msvc-<hash> pointing to deps/msvc and uses that path in the flags. Paths without spaces work exactly as before.

Tested: ./setup.sh victory now completes in a checkout whose path contains a space (Fedora 45).

🤖 Generated with Claude Code

**@⁠SemmerSky** on GitHub · 2026-11-30 12:17 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/27) `SemmerSky:fix/build-path-with-spaces` → `main` · +8 −0 · 1 files · 1 commits · merged 2026-12-02 19:14 UTC Cloning into a path with spaces (e.g. `~/My Games/VIctory-xmem`) makes `./setup.sh` fail at the victory step: ``` error: multiple input filenames provided (first two filenames are `-` and `Games/VIctory-xmem/deps/msvc`) ``` Cargo splits `CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUSTFLAGS` on whitespace, and `cc` does the same with `CFLAGS_*`, so `/winsysroot:<sdk>` gets split into two arguments. When the sdk path contains whitespace, `build.sh` now creates a space-free symlink at `$XDG_CACHE_HOME/victory-msvc-<hash>` pointing to `deps/msvc` and uses that path in the flags. Paths without spaces work exactly as before. Tested: `./setup.sh victory` now completes in a checkout whose path contains a space (Fedora 45). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
cargo splits CARGO_TARGET_*_RUSTFLAGS and cc splits CFLAGS on whitespace,
so a checkout under e.g. "~/GTA VI/..." turned /winsysroot:<sdk> into two
arguments and rustc failed with "multiple input filenames provided".
When the sdk path contains whitespace, point a space-free symlink under
$XDG_CACHE_HOME at it and use that instead.

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

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-30 12:17 UTC · original · edited 2026-11-30 12:19 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T12:19:35.762148Z 19e4e87 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-30 12:17 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/27#issuecomment-7278237372) · edited 2026-11-30 12:19 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"19e4e87728749759b9c0c1b20797da6b6c599be2","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-30T12:19:35.762148Z">2026-11-30T12:19:35.762148Z</relative-time> | `19e4e87` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
github manually merged commit c985eeab20 into main 2026-12-02 19:16:50 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.