fix(prx): build the macOS libraries on current main #16591
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16591"
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 Gonic0 on 2026-11-07T07:45:42Z.
What
Clang on macOS rejects five spots on
main, and the NID patcher stops on two libraries. None of this changes what Linux or Windows build, becausesize_tandstd::uint64_tare the same type there and the CMake change is underAPPLE.unsigned longandunsigned long longare distinct on macOS:sceAppContentDownload1Expandpasses asize_ttocompare_exchange_weakon an atomicstd::uint64_t.sceAppContentDownload2Expandalready usesstd::uint64_t.libSceNpCppWebApiVector::sizedefinitions returnstd::size_twhereApi.hppdeclaresstd::uint64_t.Headers on macOS do not provide what two files use:
RunReport.cppusesstd::threadwithout<thread>.VulkanDevice.cppreads::environ, which macOS does not declare. It is declared as inFrameRecorder.cpp,HostReportSources.cppandPerformanceTrace.cpp.libSceFreeTypeOtandlibfreetypeexport FreeType's own symbols on macOS next to their_nid_definitions, soMachONidPatcherstops onduplicate patched export name. Linked without the filter,libfreetypeexports 170 symbols, 38 of them_nid_and 132_FT_*. Both now export only*_nid_*on Apple, aslibSceFreeTypeOldoes, the counterpart of--exclude-libson Linux and MinGW.Tested
macOS 27.3, Apple M5 Pro, Apple clang, x86_64 Release under Rosetta 2. Tree:
main4ff82bf4e6with #4630 and #7804, which macOS still needs to build.ninja -k 0 libs relinkerstops with 3 failed objects and 4 compile errors (Export.cpp:333inlibSceAppContent,Export.cpp:6787and:6795inlibSceNpCppWebApi,RunReport.cpp:1307). With those fixed,VulkanDevice.cpp:2552fails, and then the patcher stops onlibSceFreeTypeOt.prxandlibfreetype.prx.libsandrelinkerbuild with no failures.ctest -R "run_report|guest_appcontent|guest_np_cpp_web_api|freetype").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.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code