Details
Diff Detail
Event Timeline
lldb/source/Host/macosx/objcxx/Host.mm | ||
---|---|---|
14 | This is missing __arm__, right? Why not just include TargetConditionals.h and change the the check to TARGET_OS_EMBEDDED? https://opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/TargetConditionals.h |
I don't know about checking for NO_XPC_SERVICES for these -- they're LaunchServices/AppleScript related. As Vedant mentioned with the earlier check, I think TARGET_OS_EMBEDDED rather than an architecture check would be the most correct change; these services are not available on iOS etc.
This just came up again as the watchOS/tvOS build breaks without the TARGET_OS_EMBEDDED check.
I think this is now causing a warning:
1600⧐952 ( 37%) Building CXX object tools/lldb/source/Host/macosx/objcxx/CMakeFiles/lldbHostMacOSXObjCXX.dir/Host.mm.o /Users/teemperor/2llvm/llvm-project/lldb/source/Host/macosx/objcxx/Host.mm:139:14: warning: unused function 'AcceptPIDFromInferior' [-Wunused-function] static void *AcceptPIDFromInferior(void *arg) { ^ 1 warning generated.
Reverted in bf65f19bce88fd9f1a74154d92afe37193ecd7a5. Jason pointed out this breaks macOS, as TARGET_OS_EMBEDDED is always defined (just not always to 1). Let's try this again.
This is missing __arm__, right? Why not just include TargetConditionals.h and change the the check to TARGET_OS_EMBEDDED?
https://opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/TargetConditionals.h