docs: add a contributor guide for non-windows hosts #152

Merged
Neoplayer merged 1 commit from upstream-pr/153 into main 2026-11-21 17:47:07 +00:00
Neoplayer commented 2026-11-21 17:36:29 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Neoplayer on 2026-11-21T17:36:29Z.


Change

Adds docs/non-windows-hosts.md and links to it from README.md (First build) and CONTRIBUTING.md (Build and test) so contributors on macOS and Linux can set up out/pe-env, run the platform-independent Python checks and LLVM 15 gfx1013 translation checks, understand why cmake --preset dev fails on cl, and hand off x64 Windows verification cleanly. Refs #56.

Verification

  • Base commit: 245b207
  • Host: macOS 26.5.1 (arm64), Python 3.12.13 ([email protected]), Homebrew LLVM 15.0.7 (llvm@15)
  • Verified from a clean local clone:
    • "$(brew --prefix [email protected])/bin/python3.12" -m venv out/pe-env && ./out/pe-env/bin/python -m pip install -r requirements-dev.txt -> installed pefile==2024.8.26, iced-x86==1.21.0
    • ./out/pe-env/bin/python -B tests/script_state_check.py -> Ran 9 tests ... OK
    • ./out/pe-env/bin/python -B tests/bcpack_check.py -> Ran 5 tests ... OK
    • ./out/pe-env/bin/python -B tests/resource_ranges_check.py -> Ran 3 tests ... OK
    • ./out/pe-env/bin/python -B tests/dxcontainer_part_offsets_check.py -> Ran 4 tests ... OK
    • ./out/pe-env/bin/python -B tests/layout_chunks_check.py -> layout chunk summary ok (exit 0)
    • ./out/pe-env/bin/python -B tests/intake/paths_check.py -> exit 0
    • ./out/pe-env/bin/python -B tests/shader_probe_check.py -> 9 control checks passed (exit 0)
    • ./out/pe-env/bin/python -B tests/gpu_report_format_check.py -> Ran 8 tests ... OK
    • LLVM_PREFIX="$(brew --prefix llvm@15)":
      • ./out/pe-env/bin/python -B tests/pixel_aot_check.py binary "$LLVM_PREFIX/bin/llvm-mc" "$LLVM_PREFIX/bin/llvm-objcopy" "$LLVM_PREFIX/lib/libLLVM-15.dylib" -> exit 0
      • ./out/pe-env/bin/python -B tests/ffx_dispatch_aot_check.py "$LLVM_PREFIX/bin/llvm-mc" "$LLVM_PREFIX/bin/llvm-objcopy" "$LLVM_PREFIX/lib/libLLVM-15.dylib" -> exit 0
    • cmake --preset dev -> failed as expected (The CMAKE_CXX_COMPILER: cl is not a full path and was not found in the PATH.)
    • git diff --check -> passed
  • Not run locally: Ubuntu commands were cross-checked against .github/workflows/windows.yml (python-linux and pixel-binary) rather than executed on Linux; full Windows C++/HLSL/WARP/GPU tests require x64 Windows and are deferred to CI (build-and-test).

Evidence and follow-up

Documentation only; no runtime, build, or fixture behavior is changed. No stubs are introduced for cl, MASM, D3D12, or WARP. If the CI jobs or pure-Python check list change later, update docs/non-windows-hosts.md alongside .github/workflows/windows.yml.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture. (N/A — docs-only change; verified expected cmake --preset dev failure)
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6532187799 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/153). Originally posted by [Neoplayer](https://github.com/Neoplayer) on 2026-11-21T17:36:29Z. --- ## Change Adds `docs/non-windows-hosts.md` and links to it from `README.md` (`First build`) and `CONTRIBUTING.md` (`Build and test`) so contributors on macOS and Linux can set up `out/pe-env`, run the platform-independent Python checks and LLVM 15 `gfx1013` translation checks, understand why `cmake --preset dev` fails on `cl`, and hand off x64 Windows verification cleanly. Refs #56. ## Verification - Base commit: `245b207` - Host: macOS 26.5.1 (`arm64`), Python 3.12.13 (`[email protected]`), Homebrew LLVM 15.0.7 (`llvm@15`) - Verified from a clean local clone: - `"$(brew --prefix [email protected])/bin/python3.12" -m venv out/pe-env && ./out/pe-env/bin/python -m pip install -r requirements-dev.txt` -> installed `pefile==2024.8.26`, `iced-x86==1.21.0` - `./out/pe-env/bin/python -B tests/script_state_check.py` -> `Ran 9 tests ... OK` - `./out/pe-env/bin/python -B tests/bcpack_check.py` -> `Ran 5 tests ... OK` - `./out/pe-env/bin/python -B tests/resource_ranges_check.py` -> `Ran 3 tests ... OK` - `./out/pe-env/bin/python -B tests/dxcontainer_part_offsets_check.py` -> `Ran 4 tests ... OK` - `./out/pe-env/bin/python -B tests/layout_chunks_check.py` -> `layout chunk summary ok` (exit 0) - `./out/pe-env/bin/python -B tests/intake/paths_check.py` -> exit 0 - `./out/pe-env/bin/python -B tests/shader_probe_check.py` -> 9 control checks passed (exit 0) - `./out/pe-env/bin/python -B tests/gpu_report_format_check.py` -> `Ran 8 tests ... OK` - `LLVM_PREFIX="$(brew --prefix llvm@15)"`: - `./out/pe-env/bin/python -B tests/pixel_aot_check.py binary "$LLVM_PREFIX/bin/llvm-mc" "$LLVM_PREFIX/bin/llvm-objcopy" "$LLVM_PREFIX/lib/libLLVM-15.dylib"` -> exit 0 - `./out/pe-env/bin/python -B tests/ffx_dispatch_aot_check.py "$LLVM_PREFIX/bin/llvm-mc" "$LLVM_PREFIX/bin/llvm-objcopy" "$LLVM_PREFIX/lib/libLLVM-15.dylib"` -> exit 0 - `cmake --preset dev` -> failed as expected (`The CMAKE_CXX_COMPILER: cl is not a full path and was not found in the PATH.`) - `git diff --check` -> passed - Not run locally: Ubuntu commands were cross-checked against `.github/workflows/windows.yml` (`python-linux` and `pixel-binary`) rather than executed on Linux; full Windows C++/HLSL/WARP/GPU tests require x64 Windows and are deferred to CI (`build-and-test`). ## Evidence and follow-up Documentation only; no runtime, build, or fixture behavior is changed. No stubs are introduced for `cl`, MASM, D3D12, or WARP. If the CI jobs or pure-Python check list change later, update `docs/non-windows-hosts.md` alongside `.github/workflows/windows.yml`. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [ ] I considered a negative control or failure case for a new fixture. (N/A — docs-only change; verified expected `cmake --preset dev` failure) - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets. AI-assisted.
upstream-sync closed this pull request 2026-11-24 06:41:34 +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!152
No description provided.