compat-common tests: keep TOMBOX_DXC and TOMBOX_DXC_DIR for the nested DLL build #212

Closed
github-bot wants to merge 1 commit from gh-pr/212/head into gh-pr/212/base
Owner

@⁠QuentinDanblon on GitHub · 2026-11-23 02:25 UTC · original
QuentinDanblon:pr/built-dlls-dxc → main · +2 −1 · 1 files · 1 commits · closed without merging

Library / area: compat-common test support (tests/support/built_dlls.rs). No runtime code.

Exports changed (exports.txt rows): none

Source of the behaviour: none, this is a build portability fix in the tests.

built_dlls::ensure removes every TOMBOX_* variable before it runs the nested cargo build. That also removes TOMBOX_DXC and TOMBOX_DXC_DIR, the two variables the d3d12_xs build script declares with rerun-if-env-changed and uses to find DXC. +2 / -1: those two are now passed through, the others are still removed.

Where it fails

On this machine C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64 has dxcompiler.dll and dxc.exe but no dxil.dll, so tombox_xshader::dxc finds no usable Windows Kits folder and I point TOMBOX_DXC_DIR at a DXC release instead. A direct cargo build -p d3d12_xs works that way. The nested build does not, because the variable is gone, and there is no checked-in shaders/query_accum.dxil to fall back on:

query_accum.hlsl could not be compiled (dxcompiler.dll + dxil.dll not found (set TOMBOX_DXC_DIR or install the Windows SDK)) and ...\d3d12_xs\shaders\query_accum.dxil is unavailable
test (--release, TOMBOX_DXC_DIR set) main ad24144 this PR
gdk_multi_dll fails in the nested build, before the test body 1 passed
compat_routes not rerun on main 18 passed

The same file is included by net_cross_module and by the two mfplat tests, so they get the fix too. I did not run the mfplat ones.

No comment lines added (PR gate: 1 file checked, 0 problems).

  • cargo test -p compat-common --release --test gdk_multi_dll --test compat_routes passes
  • No game or console files and no binaries included
  • No fake success; anything not possible is left missing with a note

🤖 Generated with Claude Code

**@⁠QuentinDanblon** on GitHub · 2026-11-23 02:25 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/212) `QuentinDanblon:pr/built-dlls-dxc` → `main` · +2 −1 · 1 files · 1 commits · closed without merging **Library / area:** compat-common test support (`tests/support/built_dlls.rs`). No runtime code. **Exports changed (exports.txt rows):** none **Source of the behaviour:** none, this is a build portability fix in the tests. `built_dlls::ensure` removes every `TOMBOX_*` variable before it runs the nested `cargo build`. That also removes `TOMBOX_DXC` and `TOMBOX_DXC_DIR`, the two variables the `d3d12_xs` build script declares with `rerun-if-env-changed` and uses to find DXC. +2 / -1: those two are now passed through, the others are still removed. ### Where it fails On this machine `C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64` has `dxcompiler.dll` and `dxc.exe` but no `dxil.dll`, so `tombox_xshader::dxc` finds no usable Windows Kits folder and I point `TOMBOX_DXC_DIR` at a DXC release instead. A direct `cargo build -p d3d12_xs` works that way. The nested build does not, because the variable is gone, and there is no checked-in `shaders/query_accum.dxil` to fall back on: ``` query_accum.hlsl could not be compiled (dxcompiler.dll + dxil.dll not found (set TOMBOX_DXC_DIR or install the Windows SDK)) and ...\d3d12_xs\shaders\query_accum.dxil is unavailable ``` | test (`--release`, `TOMBOX_DXC_DIR` set) | main `ad24144` | this PR | |---|---|---| | `gdk_multi_dll` | fails in the nested build, before the test body | 1 passed | | `compat_routes` | not rerun on main | 18 passed | The same file is included by `net_cross_module` and by the two `mfplat` tests, so they get the fix too. I did not run the `mfplat` ones. No comment lines added (PR gate: 1 file checked, 0 problems). - [x] `cargo test -p compat-common --release --test gdk_multi_dll --test compat_routes` passes - [x] No game or console files and no binaries included - [x] No fake success; anything not possible is left `missing` with a note 🤖 Generated with [Claude Code](https://claude.com/claude-code)
built_dlls::ensure removes every TOMBOX_* variable before it runs the
nested cargo build. That also removes the two variables the d3d12_xs
build script reads to find DXC, so on a machine whose Windows Kits x64
folder has dxcompiler.dll but no dxil.dll the nested build stops, even
with TOMBOX_DXC_DIR set, and gdk_multi_dll cannot run.

The two variables are now passed through. The others are still removed.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:14:06 +00:00
github-bot closed this pull request 2026-11-26 06:14:06 +00:00
Author
Owner

@⁠omonkeyz on GitHub · 2026-11-23 02:34 UTC · original

Applied in d6ae2cb (merged in c16f0fa) with your authorship kept, thanks. gdk_multi_dll (1/1) and compat_routes (18/18) pass here.

**@⁠omonkeyz** on GitHub · 2026-11-23 02:34 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/212#issuecomment-7090046232) Applied in d6ae2cb (merged in c16f0fa) with your authorship kept, thanks. gdk_multi_dll (1/1) and compat_routes (18/18) pass here.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.