fix(relinker): build the manifest resource in paths with spaces #5301
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5301"
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 wachi35676 on 2026-10-13T16:45:04Z.
What
On Windows the relinker does not build when the checkout path contains a space.
windrespasses the include directories to the preprocessor unquoted, sorelinker.rcfails:#2210 fixed the same failure for FreeType's
ftver.rc;relinker.rcarrived later with the long-path manifest (#4618) and inherits therelinkertarget's include directories. The resource only includes<winuser.h>and the manifest next to it, so it is now compiled in its own object library, which has no include directories, and its object is added torelinker. TheOBJECT_DEPENDSonrelinker.manifestis kept.Tested
Windows 11 26200, WinLibs GCC 15.2.0 UCRT (
15.2.0posix-14.0.0-ucrt-r7), windres 2.46.0, CMake 4.3.1, relinker-only build (-DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON) with the checkout in...\Emulation Contribution\AnyPS5.Before, on
0214069e3: the build stops atrelinker.rc.objwith the error above.After: the build completes,
relinker.exehas a.rsrcsection holding the manifest (longPathAwareis present), andctestpasses 150/150.build.ninjashows therelinker.rc.objedge withoutINCLUDESand still depending onrelinker.manifest.python tools/check_conventions.py --base origin/mainpasses.Full build with
-DBUILD_TESTING=ONin the same checkout, with this change on0214069e3: configure and build complete (3155 steps).ctest -j 6on a machine under other load: 1088 of 1095 passed, 7 skipped; the 7 that failed (conventions_function_bodies,host_thread_local,guest_video_out_high_frame_rate,guest_pthread_start,guest_pthread_rwlock,guest_raise_exception,guest_file_lock_process; timeouts and two aborts) all pass when rerun one at a time.Not tested: Linux and macOS (the changed block is inside
if(WIN32)).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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by johandavidcm on 2026-10-13T21:50:49Z.
Independent validation on Windows with a checkout path that contains spaces (
E:\Rangers Guild Proyects\...): Windows 11 26200, WinLibs GCC 15.2.0 UCRT (15.2.0posix-14.0.0-ucrt-r7), CMake 4.3.1, relinker-only build (-DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON).mainc7601b797: the build stops atrelinker.rc.objwithcc1.exe: fatal error: Guild\: No such file or directory.04421e7d4) merged intoc7601b797: the build completes,relinker.rc.objis built byrelinker_resourceswithout include directories,relinker.exestill embeds the manifest (longPathAwarepresent,.rsrcsection), andctestpasses 150/150.Not tested: Linux and macOS.