|
9 | 9 | #include "lldb/Host/Host.h"
|
10 | 10 |
|
11 | 11 | #include <AvailabilityMacros.h>
|
| 12 | +#include <TargetConditionals.h> |
12 | 13 |
|
13 | 14 | // On device doesn't have supporty for XPC.
|
14 |
| -#if defined(__APPLE__) && (defined(__arm64__) || defined(__aarch64__)) |
| 15 | +#if defined(__APPLE__) && defined(TARGET_OS_EMBEDDED) |
15 | 16 | #define NO_XPC_SERVICES 1
|
16 | 17 | #endif
|
17 | 18 |
|
|
153 | 154 | return NULL;
|
154 | 155 | }
|
155 | 156 |
|
156 |
| -#if !defined(__arm__) && !defined(__arm64__) && !defined(__aarch64__) |
| 157 | +#if !NO_XPC_SERVICES |
157 | 158 |
|
158 | 159 | const char *applscript_in_new_tty = "tell application \"Terminal\"\n"
|
159 | 160 | " activate\n"
|
@@ -307,11 +308,11 @@ repeat with the_window in (get windows)\n\
|
307 | 308 | return error;
|
308 | 309 | }
|
309 | 310 |
|
310 |
| -#endif // #if !defined(__arm__) && !defined(__arm64__) && !defined(__aarch64__) |
| 311 | +#endif // #if !NO_XPC_SERVICES |
311 | 312 |
|
312 | 313 | bool Host::OpenFileInExternalEditor(const FileSpec &file_spec,
|
313 | 314 | uint32_t line_no) {
|
314 |
| -#if defined(__arm__) || defined(__arm64__) || defined(__aarch64__) |
| 315 | +#if NO_XPC_SERVICES |
315 | 316 | return false;
|
316 | 317 | #else
|
317 | 318 | // We attach this to an 'odoc' event to specify a particular selection
|
@@ -404,7 +405,7 @@ repeat with the_window in (get windows)\n\
|
404 | 405 | }
|
405 | 406 |
|
406 | 407 | return true;
|
407 |
| -#endif // #if !defined(__arm__) && !defined(__arm64__) && !defined(__aarch64__) |
| 408 | +#endif // #if !NO_XPC_SERVICES |
408 | 409 | }
|
409 | 410 |
|
410 | 411 | Environment Host::GetEnvironment() { return Environment(*_NSGetEnviron()); }
|
@@ -1263,7 +1264,7 @@ static bool ShouldLaunchUsingXPC(ProcessLaunchInfo &launch_info) {
|
1263 | 1264 | }
|
1264 | 1265 |
|
1265 | 1266 | if (launch_info.GetFlags().Test(eLaunchFlagLaunchInTTY)) {
|
1266 |
| -#if !defined(__arm__) && !defined(__arm64__) && !defined(__aarch64__) |
| 1267 | +#if !NO_XPC_SERVICES |
1267 | 1268 | return LaunchInNewTerminalWithAppleScript(exe_spec.GetPath().c_str(),
|
1268 | 1269 | launch_info);
|
1269 | 1270 | #else
|
|
0 commit comments