fix(build): forward selected toolchains to libjpeg-turbo #19625
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19625"
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 boykopovar/AnyPS5. Originally posted by IvanFogel on 2026-11-13T16:35:55Z.
What
The nested libjpeg-turbo build receives the parent compiler but loses its selected CMake toolchain. A Linux-to-MinGW build then configures that child as a Linux project with a Windows compiler and fails to determine its pointer size. Forward CMAKE_TOOLCHAIN_FILE when supplied, retaining the existing native and Apple settings.
Add a production-helper regression whose nested C compilation requires a definition supplied only by the selected toolchain. The fixture uses paths with spaces; a native build without a toolchain remains supported. No JPEG decoding behavior is changed.
The registered regression now inherits its parent CMake generator, so non-Ninja builds do not require Ninja just to run this test.
Tested
Current main refresh:
4f4fa0b13e629d1de1dc3de5f8c5801e154e9b40ond261fa6f56657357c39d1d4c26ba2546a94add7e. Every own range-diff entry is unchanged. Both selected-toolchain and native-control compiler probes pass with Ninja and Unix Makefiles. The Makefiles run uses a private PATH without Ninja, verifying the reported generator-portability issue remains fixed. Main already contains upstream CES revertbbc937d05536ad0dce4e7a91b90e0d20cbd21360; the four formerly timing-out cases pass under Wine on the current-main-based extrema candidate. This does not replace fresh upstream full Windows CI. Earlier exact-head results below remain historical, including external reports not rerun here. Refresh pins and full local qualification.Linux x86-64 / CachyOS, GCC 16.2.1, CMake 4.4.5. Current candidate
617c139b045a460983d271d21686674520e44ed9on main snapshot5891d14d99b55999a211613839f9e8dcac31aeff.3213fc94d016b7d3f51561a47fbb7eec5ae74a62: both cases fail because the fixture requests Ninja, despite CMAKE_GENERATOR=Unix Makefiles and a private PATH with Make/compiler tools but no Ninja. The corrected native-control and selected-toolchain cases both pass in that same environment (1.39 seconds total), and with Ninja (0.95 seconds total).c85e6b905bf237038faa936dab160ebfc5da0344through the production helper using Arch mingw-w64-gcc 16.2.0-2.1 and the selected Windows toolchain: configure, compilation and archive installation pass. The 1,414,290-byte libturbojpeg.a contains only x86-64 PE/COFF objects.Full regression, fresh generator/MinGW qualification and original review evidence.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)