Build the portable loader library on non-Windows hosts #599
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/599"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from readmet3xt-lab/foxhound. Originally posted by shiaho777 on 2026-12-04T13:10:05Z.
Building
victory-loaderon macOS fails incrash.rsbecause the module imports Windows-only dependencies. This prevents consumers from building the portable image-preparation and import-resolution APIs. Compile the crash handler under the same Windows condition as its exports. Compile the private image publisher for Windows and unit tests, where it has callers.On Apple Silicon, the crate builds with all features, passes Clippy with warnings denied, and passes the six frame-rate and publication tests. Three preparation tests read the running executable as a PE image and therefore fail against the native Mach-O test binary. All three pass with a Windows test binary under Wine.
Also checked all features and tests for
x86_64-pc-windows-msvc. The Windows GNU/LLVM library suite under Wine passed 60 of 61 tests. I reproduced the same failingwrite_sites::tests::changed_moves_and_vector_stores_do_what_they_didassertion on the unmodified base.cargo xtask policypassed.Imported from readmet3xt-lab/foxhound. Originally posted by fromthemoonx on 2026-12-04T16:20:52Z.
No change on native Windows, and the test that failed for you under Wine passes here.
Tested at
394ae3fa, directly on currentmain(5e44415b). Windows 11 Pro, Ryzen 7 5700X,x86_64-pc-windows-msvc, Rust 1.98.1.cargo test --locked -p victory-loader --lib: 61 passed, 0 failed. With--all-features: 64 passed, 0 failed.write_sites::tests::changed_moves_and_vector_stores_do_what_they_did: passed 40 of 40 runs alone, and in 40 of 40 runs of the whole library suite. So I could not reproduce that failure on native Windows with the MSVC build.--all-features) andcargo xtask policy: clean.crash(profile,stacks, the exports) is already Windows-only, and the only caller ofpublishoutside its tests iswindows.rs. Both modules are still compiled on Windows as before.Not tested: the macOS or Linux build this PR is for (no such target here), the rest of the workspace's tests, starting a title.
AI use: Claude Code (Claude Opus 5.5) ran the tests, read the diff and wrote this report.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.