fix(loader): keep Windows crash handling out of portable builds #1108

Merged
LgscobraPT merged 1 commit from upstream-pr/1108 into main 2026-11-29 08:16:57 +00:00
LgscobraPT commented 2026-11-28 13:23:00 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by LgscobraPT on 2026-11-28T13:23:00Z.


Summary

  • Compile the Win32 crash reporter only on Windows, like its existing exports and call sites. This fixes the native Linux build for victory-loader.
  • Keep the cache publication helper available to the Windows loader and to its portable unit tests.
  • Run tests that parse the test executable as a PE image only on Windows. The synthetic PE and cache tests still run on Linux.

Verification

  • Reproduced the missing windows_sys and console_insn errors from cargo check --locked -p victory-loader --all-targets --all-features on the base commit. The same check passes with this patch.
  • cargo test --locked -p victory-loader --all-features: six portable tests passed on Linux.
  • cargo clippy --locked -p victory-loader --all-targets --all-features -- -D warnings passed on Linux.
  • cargo check --locked --target x86_64-pc-windows-msvc -p victory-loader --all-targets --all-features --features blake3/pure passed. Windows execution was not tested.
  • The full native Linux workspace check still fails in victory-gpu on Windows-only D3D12 dependencies; this change is limited to the loader.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5540557646 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1108). Originally posted by [LgscobraPT](https://github.com/LgscobraPT) on 2026-11-28T13:23:00Z. --- ## Summary - Compile the Win32 crash reporter only on Windows, like its existing exports and call sites. This fixes the native Linux build for `victory-loader`. - Keep the cache publication helper available to the Windows loader and to its portable unit tests. - Run tests that parse the test executable as a PE image only on Windows. The synthetic PE and cache tests still run on Linux. ## Verification - Reproduced the missing `windows_sys` and `console_insn` errors from `cargo check --locked -p victory-loader --all-targets --all-features` on the base commit. The same check passes with this patch. - `cargo test --locked -p victory-loader --all-features`: six portable tests passed on Linux. - `cargo clippy --locked -p victory-loader --all-targets --all-features -- -D warnings` passed on Linux. - `cargo check --locked --target x86_64-pc-windows-msvc -p victory-loader --all-targets --all-features --features blake3/pure` passed. Windows execution was not tested. - The full native Linux workspace check still fails in `victory-gpu` on Windows-only D3D12 dependencies; this change is limited to the loader.
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
trustno1-coder/VIctory-NVIDIA!1108
No description provided.