build: compile the shared libc headers, thread priority and three tests on macOS #10362
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10362"
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 iamthehimansh on 2026-10-23T19:21:50Z.
What
Part 1 of splitting #8658 into topic PRs, as @adriadam10 asked: the shared-file build fixes that let
maincompile further on macOS. #4627 (@mugurc) has since landed theFormatting.cppandExportMacros.hppparts, so this PR now carries only what is still missing onmain.Changes, all on macOS only:
FileStream.hpp: callfeof_unlocked/ferror_unlockedunqualified. The macOS SDK defines them as macros, so::feof_unlockeddoes not exist.StandardExceptions.cpp:const_castthe error-category vtable slot before the function-pointerreinterpret_cast, which Apple clang rejects as casting away qualifiers. Without itlibc/src/exception/Exports.cppfails to build sincestd::system_categorylanded.ThreadPriority.cpp: macOS has no rtkit orRLIMIT_RTTIME.highasks for the user-interactive QoS class, andrtfor a Mach time-constraint policy (period 1 ms, computation 0.5 ms), documented indocs/dev/ENVIRONMENT.md.GuestContentSearch.cppandGuestNpWebApi2.cpp: include<initializer_list>.On macOS,
mainstill fails 13 objects with this PR. Each is in a file another open macOS PR changes:libc/src/GuestAllocations.cppfix/macos-guest-allocations-dyld, PR to be opened by @krishalivaibhavlibkernel/DirectMemory/DirectMemory.cpplibkernel/Pthread/src/Thread.cpp,System/src/Process.cpplibkernel/System/src/Exception.cpp,tests/GuestRaiseException.cpplibkernel/File/src/NativeStat.cpp,SharedMemory.cpp,Stdio.cpp,Module/src/DynamicLoader.cpp,ModuleInfo.cpp,System/src/Rtld.cppWhy
Upstream CI does not build macOS, so shared headers and new code keep breaking the macOS build of every library. Landing these first keeps the topic PRs from #8658 small, so each can be checked on its own.
Testing
mainata23f8fc9f: the remaining failures are the 13 objects above.unifdef -U__APPLE__(with-D__linux__and with-D_WIN32) equalsmain.python3 tools/check_conventions.py --base origin/main: all checks passed.Depends on: none. Tracking: #8658.
AI-assisted: yes (Cana)
Pull request closed