docs: create the reusable Vulkan host output directory #2679

Merged
nanyoudegege merged 3 commits from upstream-pr/2687 into main 2026-11-26 03:08:03 +00:00
nanyoudegege commented 2026-11-26 02:04:33 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by nanyoudegege on 2026-11-26T02:04:33Z.


Summary

Create out/vk before compiling the reusable host in the non-Windows guide. On a clean checkout, even after the Python quick start creates out/pe-env, the documented cc command cannot write the executable if out/vk does not exist. Keep the compiler flags and the automatic .c build route unchanged. The example stops if directory creation fails.

Verification

  • Cloud Debian 13 x64, GCC 14.2 / GNU ld 2.44; documentation baseline b2564017, with the same guide blob at the publication base 572723f9. With a trivial C program at tests/vk_pixel_draw.c and a scratch libvulkan.so linker-name symlink to the installed loader, cc -std=c11 -O1 -o out/vk/vk_pixel_draw tests/vk_pixel_draw.c -lvulkan failed with exit 1 and cannot open output file when out/vk was missing. The documented mkdir -p out/vk && cc -std=c11 -O1 -o out/vk/vk_pixel_draw tests/vk_pixel_draw.c -lvulkan compiled with exit 0 and the fixture exited 0, including on repeat. Also verified that a failed mkdir stops the chain.
  • git apply --check --whitespace=error passed in both directions. python3 -B tests/pixel_denorm_vulkan_check.py passed 10 classification checks.

This verifies the command's output-directory handling only. The actual Vulkan host, GPU/DXC and Windows paths were not run. AI-assisted; patch and shell behavior checked independently.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6617883334 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2687). Originally posted by [nanyoudegege](https://github.com/nanyoudegege) on 2026-11-26T02:04:33Z. --- ## Summary Create `out/vk` before compiling the reusable host in the non-Windows guide. On a clean checkout, even after the Python quick start creates `out/pe-env`, the documented `cc` command cannot write the executable if `out/vk` does not exist. Keep the compiler flags and the automatic `.c` build route unchanged. The example stops if directory creation fails. ## Verification - Cloud Debian 13 x64, GCC 14.2 / GNU ld 2.44; documentation baseline `b2564017`, with the same guide blob at the publication base `572723f9`. With a trivial C program at `tests/vk_pixel_draw.c` and a scratch `libvulkan.so` linker-name symlink to the installed loader, `cc -std=c11 -O1 -o out/vk/vk_pixel_draw tests/vk_pixel_draw.c -lvulkan` failed with exit 1 and `cannot open output file` when `out/vk` was missing. The documented `mkdir -p out/vk && cc -std=c11 -O1 -o out/vk/vk_pixel_draw tests/vk_pixel_draw.c -lvulkan` compiled with exit 0 and the fixture exited 0, including on repeat. Also verified that a failed `mkdir` stops the chain. - `git apply --check --whitespace=error` passed in both directions. `python3 -B tests/pixel_denorm_vulkan_check.py` passed 10 classification checks. This verifies the command's output-directory handling only. The actual Vulkan host, GPU/DXC and Windows paths were not run. AI-assisted; patch and shell behavior checked independently.
chatgpt-codex-connector[bot commented 2026-11-26 02:05:14 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T02:04:41Z.


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-26T02:05:48.023205Z c62fded 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7180436006 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2687#issuecomment-7180436006). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-26T02:04:41Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"c62fdedf2d9a64b295b48a352c76c469c3d0d713","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-26T02:05:48.023205Z">2026-11-26T02:05:48.023205Z</relative-time> | `c62fded` | 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>
tedin7 commented 2026-11-26 03:03:12 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T02:54:24Z.

Review: COMMENTED


Review of head c62fdedf: sound.

cc -o out/vk/vk_pixel_draw ... fails on a fresh checkout because the compiler does not create out/vk. Adding mkdir -p out/vk && makes the documented one-time build work as written. The path passed afterwards (out/vk/vk_pixel_draw) is unchanged. This is a docs-only change in docs/non-windows-hosts.md, and no other PR covers it.

Commands (Linux, on c62fdedf): python3 tests/docs_links_check.py (19 files, 515 links ok), python3 tests/bidi_controls_check.py ok, git diff --check origin/main...HEAD clean.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6067926364 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2687#pullrequestreview-6067926364). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T02:54:24Z. **Review:** COMMENTED --- Review of head `c62fdedf`: sound. `cc -o out/vk/vk_pixel_draw ...` fails on a fresh checkout because the compiler does not create `out/vk`. Adding `mkdir -p out/vk &&` makes the documented one-time build work as written. The path passed afterwards (`out/vk/vk_pixel_draw`) is unchanged. This is a docs-only change in `docs/non-windows-hosts.md`, and no other PR covers it. Commands (Linux, on `c62fdedf`): `python3 tests/docs_links_check.py` (19 files, 515 links ok), `python3 tests/bidi_controls_check.py` ok, `git diff --check origin/main...HEAD` clean. AI-assisted; commands listed were executed locally.
upstream-sync closed this pull request 2026-11-26 04:04:20 +00:00
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!2679
No description provided.